Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a server with ipaddress and port. The server running this location. But lot of client connect with this server.

For example : I send message when i connect to server. The server listener getting that message and the write as stream(networkstream). Some case the server send message to client. (The server have one thread running and getting value from database) more than one client connected with server..
"How to write the correct message with correct client... ) exmple
Database design
client 1 welcome c1
client 2 welcome c2
Posted
Comments
Jegan Thiyagesan 18-Feb-13 4:44am    
Hithere is a "broadcast" function in the TCP server, which will sends the message to all connected clients.

Regadrs
Jegan
durai.net 20-Feb-13 22:49pm    
broadcast is send message to all client at that time through client ip and port number..
i want only send the message to random of client

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900