Todd Burch wrote:

[aSyncSocket receiveWithTimeout:-1 tag:1]; //Listen for the next UDP packet to arrive...which will call this method again in turn.

Don't start another receive.

Handle or ignore the packet, then always return NO from the delegate method. The single outstanding receive will continue receiving packets and passing them to the delegate. Don't return YES until you want it to stop receiving callbacks. It seems wacky but it worked for me.

And I used a large timeout (1.0e9), not a negative one.

  -- GG
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to