<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p><br>
</p>
<p>It seems like accessing the shell and use "netcat" (on Unix) is a
possible solution. Quite an <i>exotic</i> workaround but better
than nothing I'd say.</p>
<p>Something like that seems to work:</p>
<p><i>// run ChucK with "--caution-to-the-wind"</i><i><br>
</i><i><br>
</i><i>"echo -ne '" => string prefix;</i><i><br>
</i><i>"' | netcat 127.0.0.1 3333 " => string suffix; //
netcat <target ip> <target port></i><i><br>
</i><i><br>
</i><i>while(true)</i><i><br>
</i><i>{</i><i><br>
</i><i> Math.random2(0,127) => int r;</i><i><br>
</i><i> prefix + Std.itoa(r) + suffix => string msg;</i><i><br>
</i><i> Std.system(msg);</i><i><br>
</i><i><br>
</i><i> second => now;</i><i><br>
</i><i>}</i></p>
<p><i></i><br>
</p>
<p>Please, let me know if anyone has a better solution.<br>
</p>
<p><br>
</p>
<p>Cheers,</p>
<p>Mario<br>
</p>
<div class="moz-cite-prefix">On 01/12/2018 18:04, mario buoninfante
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:f8b67e84-1611-2c49-d873-8b9994c6a98b@gmail.com">Hi,
<br>
<br>
<br>
I also tried opening a file in /dev/tcp/<target
ip>/<target port>, but it didn't work. I'm on Ubuntu
16.04. Any idea?
<br>
<br>
<br>
Cheers,
<br>
<br>
Mario
<br>
<br>
<br>
On 30/11/2018 16:52, Mario Buoninfante wrote:
<br>
<blockquote type="cite">Hi,
<br>
<br>
Does anyone know if it's possible to use TCP instead of UDP in
ChucK?
<br>
<br>
Cheers,
<br>
Mario
<br>
</blockquote>
<br>
</blockquote>
<pre class="moz-signature" cols="72">--
Electronic Musician, Creative Coder, QA Engineer
<a class="moz-txt-link-freetext" href="https://vimeo.com/creativecodingsalerno">https://vimeo.com/creativecodingsalerno</a>
<a class="moz-txt-link-freetext" href="http://mbuoninfante.tumblr.com/">http://mbuoninfante.tumblr.com/</a>
<a class="moz-txt-link-freetext" href="https://github.com/mariobuoninfante">https://github.com/mariobuoninfante</a>
<a class="moz-txt-link-freetext" href="https://bitbucket.org/mariobuoninfante/">https://bitbucket.org/mariobuoninfante/</a></pre>
</body>
</html>