Re: [Q] CFSocket & RunLoop --2nd try
Re: [Q] CFSocket & RunLoop --2nd try
- Subject: Re: [Q] CFSocket & RunLoop --2nd try
- From: Shawn Erickson <email@hidden>
- Date: Thu, 22 Jan 2004 06:57:47 -0800
On Jan 22, 2004, at 12:31 AM, Rogier Bosch wrote:
Hay Group,
ok, in the rebound :)
How do i end/stop the runloop when using CFSocket (UDP) & RunLoop
(CFSocketCreateRunLoopSource)?
I would think that inside the callback function, cause i know when i
have received the last bytes. So that's the place to stop the runloop?
On the other-hand i don't have a pointer to the runloop inside this
(callback) function. While CFRunLoopGetCurrent() returns only the
mainloop. So a CFRunLoopStop() -inside the callback- doesn't seem
right.
So how to deal with this...?? or any pointers on the net are
appreciated.
Thanks in advance!!
An important thing to note about run loops are that they can only be
run if it they have at least one input source. If they are running and
the last input source is removed (or invalidated I believe) the run
loop will return (stop running).
-Shawn
_______________________________________________
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.