Add support for the --max-clients option

This commit is contained in:
Shuanglei Tao
2017-04-06 21:24:19 +08:00
parent 9cc5e4a03b
commit 3580e80783
7 changed files with 22 additions and 2 deletions

View File

@@ -110,6 +110,7 @@ struct tty_server {
char *sig_name; // human readable signal string
bool readonly; // whether not allow clients to write to the TTY
bool check_origin; // whether allow websocket connection from different origin
int max_clients; // maximum clients to support
bool once; // whether accept only one client and exit on disconnection
char *socket_path; // UNIX domain socket path
pthread_mutex_t lock;