Dave, > but then I want to wait n milliseconds for a reply, and if I don't get a reply then ? > handle accordingly. However, with my current code, my code hangs if I don't get > a reply back from the server. Does anyone know what I need to change?
Have you tried using SetSocketOption, like this: s.SetSocketOption ( SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout, TIMEOUT ); (where TIMEOUT is the timeout in ms you want...) -- Tomas Restrepo [EMAIL PROTECTED] You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.