qotd/server.h
2021-11-26 13:56:48 +01:00

27 lines
559 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 "quote.h"
void server(int tcp, int ipv6);
void tcpListen(int serverSocket, struct sockaddr *clientAddress, unsigned long addressLength);
_Noreturn void udpListen(int serverSocket, struct sockaddr *clientAddress, unsigned long addressLength);
#endif //QOTD_SERVER_H