Hi Tom,<br><br>Colorful error message!  <br><br>I'm afraid there's no socket communication in Chuck to my knowledge, however, on Posix systems (and there my be an equivalent of this in Windows) I've successfully used fifo pipes to communicate between a Chuck script and another process.  <br>
<br>Also, don't forget that you can send/receive OSC messages between processes as well.  There my be a way to parse those in the process that runs your visualization (especially if it's written in Java, C++, Python, or another common language).  Often OSC is the best route, since it's implemented in so many different environments.<br>
<br>Best,<br>Mike<br><br><br><br><div class="gmail_quote">2010/5/11 Tom Aizenberg <span dir="ltr"><<a href="mailto:tom@tomaizenberg.nl">tom@tomaizenberg.nl</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">









<div link="blue" vlink="purple" lang="NL">

<div>

<p class="MsoNormal"><span lang="EN-US">Hi All,</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">I am trying to make a visualization program
for ChucK programs. For the communication between ChucK and the C++ code
I’m writing, I use a pipe. I’d rather use a socket but I cannot see
how this works in ChucK (?).</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">When I write to <i>chout</i> I need to
flush the buffer, just to read in the output using my own program. When I try
to do this (i.e. my_IO_object.flush()) I get the following message:</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><i><span lang="EN-US">“(IO): internal error! inside an
abstract function! help!</span></i></p>

<p class="MsoNormal"><i><span lang="EN-US">    note: please hunt
down someone (e.g., Ge) to fix this...”</span></i></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">The command I use is: <i>chuck-1.2.1.3-exe\bin\chuck.exe
chuckVis\chuckFiles\<a href="http://random1.ck" target="_blank">random1.ck</a></i>, on Windows Vista 32-bits. Without the
.flush() the script works fine, but I need the flush functionality…</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">Has anybody got a clue how to fix this? Or
maybe how to use ChucK to send messages through a socket?</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">Greetings,</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p><font color="#888888">

<p class="MsoNormal"><span lang="EN-US">Tom Aizenberg</span><span lang="EN-US"></span></p>

</font></div>

</div>


<br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://michaelclemow.com">http://michaelclemow.com</a><br><a href="http://semiotech.org">http://semiotech.org</a><br><br>