Quote Originally Posted by Vivek1982
Here,Server code is having one socket. while it has to send data for all clients.
Do you mean that you have one socket sending data to several clients from the server side? And you want to call write() to send data for all clients by THAT SAME socket ?