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
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.
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/007908799/xsh/pthread_create.html http://www.mit.edu:8001/people/proven/IAP_2000/