How to pass data using Sockets
Guys can anyone help me to How to pass data between two different processes using sockets.
Here are the steps using sockets (correct me if I am wrong)
Process1(server):
1. Create a socket
2. Bind
3. listen
4. Accept
5. Close
Process2(Client):
1. Create a Socket
2. Connect
3. Close
In sockets, we have to use the same name for both the sockets. Can anyone please tell me how to give the same name.
While coming to pass the data between processes, If I wish to pass a struct of data using linked lists...Is it possible.
Can anyone please help me with this and kindly share any sample programs using Sockets if you have any. Thank you.