Server and client on Raspberry Pi

Click For Summary

Discussion Overview

The discussion revolves around establishing multiple client connections to a server using Python on Raspberry Pi devices. Participants explore methods for managing client-server communication, particularly focusing on task execution order and socket programming.

Discussion Character

  • Technical explanation, Exploratory, Homework-related

Main Points Raised

  • One participant inquires about how to connect multiple clients to a server using Python's socket functionality, specifying a scenario with five clients and one server where clients must wait for the previous client's task to complete.
  • Another participant suggests using ZeroMQ as an alternative to sockets, highlighting its capabilities for connecting machines across a network.
  • A later reply indicates that a solution was found using a queue to manage client tasks, allowing the server to hold other clients until the current task is finished.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach, as multiple methods (sockets vs. ZeroMQ) are proposed, and the discussion reflects different perspectives on managing client connections.

Contextual Notes

Details on the specific implementation of the socket function or the queue mechanism are not provided, leaving assumptions about the underlying architecture and dependencies on definitions unresolved.

Who May Find This Useful

This discussion may be useful for individuals interested in network programming, particularly those working with Python on Raspberry Pi for client-server applications.

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.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 39 ·
2
Replies
39
Views
8K
  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
7
Views
3K
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K