#ifndef server_h
#define server_h

#include <netinet/in.h>

#define BUFFER_SIZE 24000

struct Server {
    int domain;
    int port;
    int service;
    int protocol;
    int backlog;
    u_long interface;

    int socket;
    struct sockaddr_in address;

    void (*launch)(struct Server *server);
};

struct Server server_Constructor(int port, void (*launch)(struct Server *server));
void launch(struct Server *server);

#endif

