forked from mirrors/qotd
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user