Socket Error. Help

  • Thread starter Thread starter fanskyer
  • Start date Start date
F

fanskyer

In my program I use tcplistener to check any connections.
I use telnet to access the port and the program runs perfect, However
if I close the telnet,then I can't access to my program again use
telnet or other program. Seems the program are still connected to the
bad telnet connection.
How to deal with this? Thanks a lot
 
Sound slike your server end (receivng the connections) isnt accepting and
then listening. Just accepting and the once connected handles once
connection. So when closed it is no longer listening henc eno more
connections.

you need to accept the connection, start a thread to handle that connection
and then continue to listen and so on and so on.
 
Thanks a lot, I will have a try :P
Daniel said:
Sound slike your server end (receivng the connections) isnt accepting and
then listening. Just accepting and the once connected handles once
connection. So when closed it is no longer listening henc eno more
connections.

you need to accept the connection, start a thread to handle that connection
and then continue to listen and so on and so on.
 
Back
Top