Network wrapper protocol as part of the practical master thesis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
497 B

//
// Created by root on 10/30/19.
//
#ifndef ECDAA_ISSUER_SERVER_H
#define ECDAA_ISSUER_SERVER_H
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include "connection.h"
#define PORT 6590
#define MAX_CLIENTS 10
#define MAX_BUFSIZE 1024
typedef struct server {
connection_t* conn;
conn_handler handler;
}server_t;
server_t* server_open(conn_handler handler);
int server_accept(server_t *server);
int server_close(server_t* server);
#endif //ECDAA_ISSUER_SERVER_H