• 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: CFSocket, RunLoop & UDP => finished?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFSocket, RunLoop & UDP => finished?


  • Subject: Re: CFSocket, RunLoop & UDP => finished?
  • From: Troy Dawson <email@hidden>
  • Date: Tue, 20 Jan 2004 03:22:12 -0800

On Jan 20, 2004, at 3:08 AM, Rogier Bosch wrote:

Hi,

Simple question -i hope ;)-.

I connect to a server with CFSocket (UDP). I send my data, my callback handler gets called. So far so good.

The thing is that, the runloop keeps running. So when do i know its finished??

So, my question: how do i detect that i got all the data, so i can close the RunLoop?

UDP is an all-or-nothing datagram, not stream, protocol. Whether or not the message is "all there is" is up to your higher-level application logic.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >CFSocket, RunLoop & UDP => finished? (From: Rogier Bosch <email@hidden>)

  • Prev by Date: CFSocket, RunLoop & UDP => finished?
  • Next by Date: Curious...
  • Previous by thread: CFSocket, RunLoop & UDP => finished?
  • Next by thread: Curious...
  • Index(es):
    • Date
    • Thread