I am opening 2 sockets (UDP) on 2 handsets and i am trying to send and receive data from both the handets to each other . Now for sending the data i am using SendTo method and for receiving i am using RecvFrom method . Now when i first send a data from one device to other and then press receive of the receiver device the data is received successfully but if i first press the receive of the receiver device and then send the data from the sender device i get panic ESock_client 14 . Now after reading various threads from the forum i came to know that it is due to Bad Descriptor , ie if the descriptor used to receive the data is an automatic variable , but my variable is not automatic , i have declared it as class meember variable . This and it is of TBuf type .
Now regarding the TSockXfrLength variable i read the SDK docs which say that for datagram sockets there is no need to put this variable in the calling method.
Now can anybody tell me why am i getting this error.