I have 4 different application running.so every application can send data to server. now i want to send data to paticular socket (server and client are done through socket programming)
from server side.
I have 4 different application running.so every application can send data to server. now
Share
When you create a socket, first you establish a connection between a server and a client (using
connectsystem call on the client side, andbind,listen, andacceptsystem calls on the server side). You can have many such connections, from a server to different clients. The server can send data on any of these established connections.The Sockets Tutorial can assist you in this case.
If you want multiple reads/writes by the server to happen at the same time, you have to use non-blocking sockets or multiple threads.