Delete client.h/.c
This commit is contained in:
15
src/server.h
15
src/server.h
@ -9,9 +9,12 @@
|
||||
#ifndef SESIMOS_SERVER_H
|
||||
#define SESIMOS_SERVER_H
|
||||
|
||||
#include "lib/sock.h"
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <maxminddb.h>
|
||||
#include <signal.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#define NUM_SOCKETS 2
|
||||
#define LISTEN_BACKLOG 16
|
||||
@ -24,6 +27,18 @@
|
||||
#define CNX_HANDLER_WORKERS 8
|
||||
#define REQ_HANDLER_WORKERS 16
|
||||
|
||||
typedef struct {
|
||||
sock socket;
|
||||
int req_num;
|
||||
char *addr, *s_addr;
|
||||
unsigned char in_use: 1, s_keep_alive:1, c_keep_alive:1;
|
||||
char cc[3], host[256];
|
||||
char log_prefix[512];
|
||||
char _c_addr[INET6_ADDRSTRLEN + 1], _s_addr[INET6_ADDRSTRLEN + 1];
|
||||
struct timespec begin, end;
|
||||
} client_ctx_t;
|
||||
|
||||
extern volatile sig_atomic_t server_alive;
|
||||
|
||||
|
||||
#endif //SESIMOS_SERVER_H
|
||||
|
Reference in New Issue
Block a user