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