Socket question

Paul D. DeRocco pderocco at ix.netcom.com
Fri Aug 17 00:55:21 EDT 2012


I'm still on Rev3.5, so I hope things haven't changed much.

If I open a UDP datagram socket, how do I request it to read one datagram,
regardless of how small or large it turns out to be? If I specify a "for"
clause, does that just set an upper limit, or does it wait until enough
datagrams have arrived to supply that many bytes? I'll be using the "with
message" clause to make it asynchronous, if that makes a difference.

If I had the datagram sender (which will be a C++ program in a Linux box)
already written, I could find this out by trying it out, but I don't want to
write the program at the other end and then find out that my idea won't work
at all. So I'm hoping someone here has already played with UDP datagram
sockets in Rev or LC, and already knows the answer.

Thanks in advance.

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco at ix.netcom.com 
 





More information about the use-livecode mailing list