Winsock - create new thread and assign a port number

Rakish's Avatar, Join Date: Jul 2006
Go4Expert Member
Hello all,

I have a clientA program that connects to the server.

What i need is to create a thread in the clientA call it clientB which has a different port.

The clientA sends the IP address and Port number of the clientB to the server, and the server sends the Message "Hello" to the clientB and not ClientA.

First of all i dont know how to create a thread and how to assign a port to a thread.

Please help,

Its very urgent...

shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
If you are unable to create thread you can refer to Interprocess communication through Named pipes. Its a multithreaded client server program but the process communication is htough pipes and it should help you to start off.
sudu's Avatar, Join Date: Sep 2006
Newbie Member
I dont know how much this will help I used these as reference to create threads but I myself have troubles with threads