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.
 
 

30 lines
593 B

//
// Created by root on 10/30/19.
//
#ifndef ECDAA_ISSUER_CLIENT_H
#define ECDAA_ISSUER_CLIENT_H
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
//#include <netinet/in.h>
#include <arpa/inet.h>
#include "connection.h"
#define MAX_BUFSIZE 1024
typedef struct client {
connection_t* conn;
conn_handler handler;
}client_t;
client_t* client_open(conn_handler handler);
int client_connect(client_t *client, char *ip_str, int16_t port);
int client_close(client_t* client);
#endif //ECDAA_ISSUER_CLIENT_H