Thanks a bunch Andu!  That worked out perfectly.  I have been running it all
day with no problems.  Checking for the length of the message was the trick
I was missing.

For those of you who are trying to get a grasp of this wonderful technology
built right inside of MC, copy these into your own stacks and chat away.

If any of you are interested in a copy of my simple chat program, just write
me off list and I will gladly send you a copy.  I have added some neat
features that can make it useful.

-Mark Talluto



Receive Code
on openCard
   accept connections on port 8080 with message "newconnect"
 end openCard

 on newconnect s
   read from socket s for 1 line
put it into tLength
read from socket s for tLength
   put it into field "receive"
   close socket s
 end newconnect


Send Code
 on mouseUp
   open socket to "192.168.0.4:8080" with message sendIt
 end mouseUp
 
 on sendIt s
   put field "send" into tdata
   write the length of tdata & crlf & tdata to socket s
    close socket s
 end sendIt


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to