• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Force packetise and interesting phenomena with two listening sockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Force packetise and interesting phenomena with two listening sockets
      • From: Liwei <email@hidden>
References: 
 >Re: Force packetise and interesting phenomena with two listening sockets (From: Liwei <email@hidden>)

  • Prev by Date: Re: Force packetise and interesting phenomena with two listening sockets
  • Next by Date: not receiving kCFStreamEventCanAcceptBytes
  • Previous by thread: Re: Force packetise and interesting phenomena with two listening sockets
  • Next by thread: Re: Force packetise and interesting phenomena with two listening sockets
  • Index(es):
    • Date
    • Thread