In my application I am using GCDAsyncUdpSocket
for UDP Packet communication...
I have written the code like the below
GCDAsyncUdpSocket* UDPSocket = [[GCDAsyncUdpSocket alloc] initWithDelegate:self delegateQueue:dispatch_get_main_queue()];
[UDPSocket sendData:dataForSendToServer toHost:stringForHostId port:portNumber withTimeout:5 tag:1];
I like to use the Timeout property to resend the Packet again if packet has timed out...
In GCDAsyncUdpSocket
API Document it says
The timeout for the send opeartion. If the timeout value is negative, the send operation will not use a timeout."
So the Timeout with -1 will work to automatically resend the packets?..or any other way to do it?
Thanks in advance.