By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,824 Members | 1,213 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,824 IT Pros & Developers. It's quick & easy.

Socket Error. Help

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.