467,085 Members | 1,193 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,085 developers. It's quick & easy.

Socket Error. Help

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

Sep 5 '06 #1
  • viewed: 1322
Share:
2 Replies
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.

<fa******@gmail.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
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

Sep 5 '06 #2
Thanks a lot, I will have a try :P
Daniel wrote:
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.

<fa******@gmail.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
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
Sep 6 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Rune | last post: by
reply views Thread by anuradha.k.r@sify.com | last post: by
11 posts views Thread by anuradha.k.r@sify.com | last post: by
2 posts views Thread by Droopy | last post: by
7 posts views Thread by | last post: by
2 posts views Thread by Vitali Gontsharuk | last post: by
1 post views Thread by Mr. Beck | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.