SpecialProxy/main.h

27 lines
532 B
C
Raw Normal View History

2017-07-12 12:29:56 +08:00
#ifndef MAIN_H
#define MAIN_H
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <limits.h>
#include <linux/netfilter_ipv4.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <signal.h>
2018-12-07 09:29:41 +08:00
#define BUFFER_SIZE 10240
2017-07-12 12:29:56 +08:00
#define MAX_CONNECTION 1020
2018-10-14 11:58:56 +08:00
extern struct epoll_event evs[MAX_CONNECTION + 1], ev;
2017-07-12 12:29:56 +08:00
extern struct sockaddr_in addr;
extern socklen_t addr_len;
extern int efd;
#endif