Explain number of allowed connections
This commit is contained in:
parent
b934bb120c
commit
9703b42b3a
3 changed files with 7 additions and 3 deletions
4
server.h
4
server.h
|
@ -5,6 +5,10 @@
|
|||
#include <common.h>
|
||||
#include <client.h>
|
||||
|
||||
/* The serial-server scenario makes sense only for 1 connected client.
|
||||
* Allow 1 extra connection to reject new clients with an explanation. */
|
||||
#define SERVER_MAX_CONNECTIONS 2
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int socket; /* server socket */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue