Add camera_t
This commit is contained in:
@ -7,6 +7,8 @@
|
||||
#include <netinet/ip.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <pthread.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include "http/http.h"
|
||||
|
||||
@ -127,6 +129,8 @@ int http_server(int listen_port, int maxcons, http_method_t *methods)
|
||||
return -1;
|
||||
}
|
||||
|
||||
sigaction(SIGPIPE, &(struct sigaction){ SIG_IGN }, NULL);
|
||||
|
||||
while (maxcons-- > 0) {
|
||||
char name[20];
|
||||
sprintf(name, "HTTP%d/%d", listen_port, maxcons);
|
||||
|
Reference in New Issue
Block a user