Winsock - create new thread and assign a port number

Go4Expert Member
6Sep2006,11:14   #1
Rakish's Avatar
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...

Thanks
Go4Expert Founder
6Sep2006,15:12   #2
shabbir's Avatar
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.
Newbie Member
7Sep2006,09:17   #3
sudu's Avatar
I dont know how much this will help I used these as reference to create threads but I myself have troubles with threads

http://www.opengroup.org/onlinepubs/...ad_create.html

http://www.mit.edu:8001/people/proven/IAP_2000/