Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Winsock - create new thread and assign a port number (http://www.go4expert.com/forums/winsock-create-thread-assign-port-t1355/)

Rakish 6Sep2006 11:14

Winsock - create new thread and assign a port number
 
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

shabbir 6Sep2006 15:12

Re: Winsock - create new thread and assign a port number
 
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 7Sep2006 09:17

Re: Winsock - create new thread and assign a port number
 
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/


All times are GMT +5.5. The time now is 19:31.