468,512 Members | 1,398 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

multithread client/server tcp

i want a server that use thread that can accept client connection on tcp but i can continue executing other part code of class and not blocking
Dec 25 '07 #1
1 3345
gpraghuram
1,275 Expert 1GB
i want a server that use thread that can accept client connection on tcp but i can continue executing other part code of class and not blocking

Basically in the server the listen is a blocking call where you will be waiting for the clients to join.
In this case what you should do is put the listen as part of a detached thread which waits for clients and handles the new connection.

Raghuram
Dec 26 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by dbmethods | last post: by
reply views Thread by Alice | last post: by
reply views Thread by r_obert | last post: by
2 posts views Thread by zhebincong | last post: by
4 posts views Thread by Crirus | last post: by
2 posts views Thread by N.Naeem | last post: by
6 posts views Thread by jmartin | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.