Server and client on Raspberry Pi

AI Thread Summary
To establish multiple client connections to a server in Python, particularly for communication between Raspberry Pis, the socket library is essential. The project involves one server managing five clients, where each client must wait for the previous client's task to complete before connecting. A suggested solution is to implement a queue system on the server, which allows it to hold other clients until the current task is finished. Additionally, ZeroMQ is recommended as an alternative to standard sockets, offering enhanced capabilities for connecting machines across a network. This approach can simplify the management of client-server communication and task handling.
mizieahmad
Messages
15
Reaction score
1
May I know how to make multiple client connected to a server in python language. I want to communicate one Raspberry Pi to other Raspberry Pi using the python. What I knew, it need to used function socket. i will explain my project. There are contain 5 clients and 1 server. A server will open the connection socket. when a client1 connected to it, it will run the specific task. If other client such as client 2 want to connected to the server and run the specific task, it need to wait until the task of client 1 is not finished. Same step for client 3,4 and 5.

May i know how to do that, just give me the idea or what the socket function that i need to used. I appreciate your reply.
 
Technology news on Phys.org
Thank to everyone for helping me to solve the problems. Now, can got the solution. By using the queue, it make the server hold the other client when a client is not finishing its work.
 
Sorry my mistake, thanks to Jedishrfu for helping me solve this problem. Thank you for your time and attention.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...
Back
Top