send message from server to all connected clients
<p>How can i send a message from server to all connected clients using sockets or how can i send message from server to any specific client. I have the concept of how to do it like i have to make a list of all the clients connected to server and then by iterating each client i can send message but i will be thankful if any one can help me by code.I have searched many codes but i didn't get any considerable help from them  Code shouldn't be GUI based. Thanks in advance.Sorry for my bad English.</p>