Hi, Having some trouble with a socket closing unexpectedly in my app. Would a timeout while waiting for a recieve packet make a socket close and throw a socketException ? I keep getting socketException messages and I don't know if this is maybe simply a timeout or another problem that I don't know about. Any info apprciated! Kim
Joined: May 10, 2001
Hello, The socket will stay open until either the program exits or you call the close() method on the socket. This may be happening somewhere in your code, and you may not be realizing it. It can happen quite easily if you are using threads! Another problem could be that the socket port you are using may already be in use by the system. Make sure you are using a free port! Hope you find these suggestions helpful! Cheers, RL
Joined: May 17, 2001
Thanks RL! I appreciate your help very much. Will take a second look at things with that info. Thanks!