Re: Force packetise and interesting phenomena with two listening sockets
Re: Force packetise and interesting phenomena with two listening sockets
- Subject: Re: Force packetise and interesting phenomena with two listening sockets
- From: Scott Ribe <email@hidden>
- Date: Thu, 16 Oct 2008 11:24:19 -0600
- Thread-topic: Force packetise and interesting phenomena with two listening sockets
> Well, I guess I'm too lazy to devise and write a protocol that allows
> me to know clearly when each "packet" of data arrives.
Prefix each logical unit (I'd call them "messages") with a length; that's
all there is to it.
Well, on the sending side anyway. On the receiving side you will have to
write a loop that builds up the message, because you can't guarantee that a
single read will get the whole message before returning.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden