Socket receive timeout in compact framework

D

Doug Crawford

When I try to set the receive timeout using:

udpSocket.SetSocketOption(SocketOptionLevel.Socket,
SocketOptionName.ReceiveTimeout, timeout);
}

I get an error on the Compact Framework. Is there any way around this.
What is the correct way to receive a UDP packet and still be able to
handle the case where the packet gets lost?
 
P

Paul G. Tobey [eMVP]

You can use Select() to wait for data to arrive *or* for a given amount of
time to elapse.

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top