I think I finally found the problem. I had to replace the call to usleep with a call to threadDelay and it worked.<br>
<br><br><div><span class="gmail_quote">2006/2/27, Stefan Aeschbacher <<a href="mailto:firstname.lastname@example.org">email@example.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br><br>I try to write a program that reads from a socket and communicates <br>the result over a TChan and writes it to stdout. Somehow I can't seem to get it right,<br>the result is only printed when I send ETX on the socket.
<br><br>Attached is a sample program that shows the behvaviour.<br><br>Any hints on where my error is or how I could debug such a problem is appreciated.<br><br>regards<br><span class="sg"><br>Stefan<br>