469,915 Members | 2,697 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

How to stop a listening socket.accept()?

It seems that the accept() method acts as stubborn as a mule to get a
connection request even if I close it in another thread.

Any idea will be deeply appreciated.
Jul 18 '05 #1
1 5128
Quoth "kvdvm" <kv***@yahoo.com>:
| It seems that the accept() method acts as stubborn as a mule to get a
| connection request even if I close it in another thread.
|
| Any idea will be deeply appreciated.

Do you mean, the thread continues to block in accept? In this
case, you can use select with a timeout, or maybe your second
thread could just connect and send a special shut down message.

Donn Cave, do**@drizzle.com
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Ole | last post: by
reply views Thread by Daniel Walton | last post: by
3 posts views Thread by Saizan | last post: by
10 posts views Thread by ThunderMusic | last post: by
2 posts views Thread by Alexandru Mosoi | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.