qotd/server.h
Arthur-Coppey e23582ac62
cleanup
2022-11-21 11:25:20 +01:00

34 lines
533 B
C

//
// Created by k0rb4k on 30/03/2021.
//
#ifndef QOTD_SERVER_H
#define QOTD_SERVER_H
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <pthread.h>
#include "quote.h"
struct sockinfo {
int handle;
struct sockaddr * address;
socklen_t addressLength;
};
void server();
void tcpListen(void * args[]);
_Noreturn void udpListen(void * args[]);
#endif //QOTD_SERVER_H