Add camera_t

This commit is contained in:
Kamil Trzcinski
2022-04-05 09:17:57 +02:00
parent 0dd713fcaa
commit 94df5c155c
9 changed files with 314 additions and 175 deletions

View File

@ -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);