Question : Socket Timeout

I am new to socket programming, and am deveoping client and server type applications.  My question is if I leave the connection open but without any activity between the client and server will the connection remain open indefinitely or will it timeout?  If timeout, can I set this?  Developed apps in C using Visual Studio.  Running them on both Windows 2000 and Windows XP.

Answer : Socket Timeout

No, timeout's will only occur if you specify for them to. So, unless you tell it to timeout after # milliseconds, then it will not timeout at all.

By the way, if you connect to a server that you did not create - perhaps a web server - then it's likely that a timeout will be thrown; otherwise, you'll be fine.  : )

Best of luck with it.
Random Solutions  
 
programming4us programming4us