0
Reply

Socket Exception

nsnavare

nsnavare

Oct 6 2004 1:56 PM
1.9k
I have made a simple TCP Listener App that responds to a Client (Also made by me). The Client App has a TcpClient configured on the same port (9000) as that of the Listener App. When I start the Listener for the first time, it goes fine. If I stop it and start it again, all goes fine again. Then I start the Client App and send requests to the Listener App. The Listener App responds well to these requests. Upto this point, all goes well. Now, I stop the Listener and try to connect through the Client. The App raises an exception, as expected. However, if I now try to start the Listener again, it raises an exception (0x2740) at the line where I have put the Code tcpListenerr.Start. I am not able to find the exact problem. I have attached the Mainform.vb file of the Listener App for your reference. Please help me out. It is most urgent.