Python Forum

Full Version: Sockets confusion!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there.

I'm getting myself very confused with sockets! I've done a bit with them, but nothing quite like this.

As mentioned in another post I have a server and 120 ish clients. I need to Send multiple requests for data from the server to all the clients, the clients need to churn some butter and reply to the server with the data.

So, which is the server? The server needs to open sockets to send the requests, the clients need the sockets open all the time to listen for the requests, then send data back, and the server needs to be listening all the time for the response from the clients.

So, I need two servers, and two clients? How does a person with a simple brain go about such a thing?!

Many thanks.
Quote:As mentioned in another post I have a server and 120 ish clients
Please do not post multiple times! It's against the rules.