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
504 B
27 lines
504 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_BUFSIZE 1024
|
|
#define SERVERIP "127.0.0.1"
|
|
|
|
typedef struct client {
|
|
connection_t* conn;
|
|
conn_handler handler;
|
|
}client_t;
|
|
|
|
client_t* client_open(conn_handler handler);
|
|
|
|
int client_connect(client_t* client);
|
|
|
|
int client_close(client_t* client);
|
|
|
|
#endif //ECDAA_ISSUER_SERVER_H
|
|
|