Re: AsyncUdpSocket: Receiving duplicate UDP Packet

2010-05-14 Thread Jens Alfke
On May 12, 2010, at 7:35 PM, Todd Burch wrote: I'm early in development, and all I'm doing is receiving a UDP packet over a given port, and logging it to the console. However, for some reason my UDP packet (transmitted from other software) appears to be arriving twice! The previous advic

Re: AsyncUdpSocket: Receiving duplicate UDP Packet

2010-05-14 Thread Greg Guerin
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 recei

Re: AsyncUdpSocket: Receiving duplicate UDP Packet

2010-05-14 Thread jonat...@mugginsoft.com
On 13 May 2010, at 03:35, Todd Burch wrote: > Hi all, > > > Can anyone who's used AsyncUdpSocket before help out a beginner? Frustrated... Looking at the source for AsyncUdpSocket I would put a break point on - maybeCompleteCurrentReceive and see if this method is called multiple times. Rega

AsyncUdpSocket: Receiving duplicate UDP Packet

2010-05-13 Thread Todd Burch
Hi all, I am using the AsyncUdpSocket class from the AsyncSocket library (http://code.google.com/p/cocoaasyncsocket/) to receive UDP packets. I'm early in development, and all I'm doing is receiving a UDP packet over a given port, and logging it to the console. However, for some reason my UDP