pthreads testing (have to add a flag in cmake but don't remember which and internet is slow af rn)

This commit is contained in:
Arthur-Coppey
2022-02-25 12:08:43 +01:00
parent 3d93fc7758
commit 195d4352a0
3 changed files with 40 additions and 18 deletions
+7
View File
@@ -14,9 +14,16 @@
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <pthread.h>
#include "quote.h"
struct sockinfo {
int handle;
struct sockaddr * address;
unsigned long addressLength;
};
void server(int tcp, int ipv6);
void tcpListen(int serverSocket, struct sockaddr *clientAddress, unsigned long addressLength);