energystorm51 / Multi-Threaded-Network-Server-for-Pattern-Analysis

0 stars 0 forks source link

Upgrade Network Server to Handle Multi-Threading #3

Open energystorm51 opened 5 hours ago

energystorm51 commented 5 hours ago

The server needs to efficiently manage multiple simultaneous connections. Here is a reference to non-blocking reads: https://medium.com/coderscorner/tale-of-client-server-and-socket-a6ef54a74763

Acceptance criteria:

  1. The program should create a new thread for each incoming connection to handle client communication.
  2. This approach has to allow multiple clients to connect simultaneously.
  3. In each thread, implement non-blocking reads from the sockets to efficiently receive and store data in one shared data structure - a list.