<html><div style='background-color:'><DIV>
<P><BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>>From: Björnke von Gierke <BVG@MAC.COM>
<DIV></DIV>>Reply-To: use-revolution@lists.runrev.com 
<DIV></DIV>>To: use-revolution@lists.runrev.com 
<DIV></DIV>>Subject: question about sockets 
<DIV></DIV>>Date: Mon, 28 Oct 2002 11:21:44 +0100 
<DIV></DIV>> 
<DIV></DIV>>sorry for my triple post earlier this day, I got some connection 
<DIV></DIV>>probs... 
<DIV></DIV>> 
<DIV></DIV>>I am trying to do some connection stuff using the open socket, write 
<DIV></DIV>>to socket, and accept socket in their datagram form. 
<DIV></DIV>>I run a by connecting to my own Jaguar mac, but I only can get one 
<DIV></DIV>>message through and I really don't know what's wrong... 
<DIV></DIV>> 
<DIV></DIV>>first I open the outgoing socket: 
<DIV></DIV>> open datagram socket to "127.0.0.1:4038|local" 
<DIV></DIV>> 
<DIV></DIV>>then I start with listening, the message just writes the socket and 
<DIV></DIV>>the datagram into a field: 
<DIV></DIV>> accept datagram connections on port 4038 with message "contact" 
<DIV></DIV>> 
<DIV></DIV>>first output comes from the "accept" command, as it sends the name 
<DIV></DIV>>and identifier of the socket: 
<DIV></DIV>>191.255.242.136|99184744 
<DIV></DIV>> 
<DIV></DIV>>finally I send a message: 
<DIV></DIV>> write field "text" to socket "127.0.0.1:4038|local" 
<DIV></DIV>> 
<DIV></DIV>> 
<DIV></DIV>>second output is the name of the socket and my message: 
<DIV></DIV>>127.0.0.1|99184744 this text is written in field "text" 
<DIV></DIV>> 
<DIV></DIV>>I know have two open sockets, one from the accept and one from the 
<DIV></DIV>>open port: 
<DIV></DIV>>4038 
<DIV></DIV>>127.0.0.1:4038|local 
<DIV></DIV>> 
<DIV></DIV>>but I cannot send a second message, as just nothing happens if I try 
<DIV></DIV>>to do so :( 
<DIV></DIV>>Does it somehow shut close? Is it a bug? Probably just me not 
<DIV></DIV>>getting how things are supposed to work... 
<DIV></DIV>> 
<DIV></DIV>>so could someone enlighten me? Il appreciate it, promised... 
<DIV></DIV>
<P>> </P>
<P> </P>
<P>I hope you realize that you're using UDP, and not TCP. TCP is more complicated, but has more options. Anywayz, if you're using UDP (thus saying "open datagram socket" instead of "open socket") you shouldn't need to use read from socket and write to socket. At least that's what I know from my little bit of RunRev experience.</P>
<P> </P>
<P>I'm actually trying some things out with TCP. If I get it done, I guess I'll post it on the mailing list, so check if you want.</P>
<P> </P>
<P> </P>
<P>Good luck!</P>
<P> </P>
<P>FreakyPhoenix</P></div><br clear=all><hr>Surf the Web without missing calls! Get MSN Broadband. <a href="http://g.msn.com/8HMDEN/2022">Click Here</a> </html>