Explain number of allowed connections

This commit is contained in:
Igor Socec 2016-11-19 15:10:57 +01:00
parent b934bb120c
commit 9703b42b3a
3 changed files with 7 additions and 3 deletions

View file

@ -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 */