change client to libev, server doesnt work yet

This commit is contained in:
wangyu-
2018-08-29 04:01:37 -05:00
parent 6718627e9d
commit 233fab4fac
5 changed files with 130 additions and 213 deletions

View File

@@ -44,21 +44,22 @@
#ifndef NO_LIBNET
#include <libnet.h>
#endif
#include <my_ev.h>
#else
//#include <linux/if_ether.h>
#include <linux/filter.h>
#include <linux/if_packet.h>
#include <sys/epoll.h>
#include <sys/wait.h>
//#include <sys/epoll.h>
//#include <sys/wait.h> //signal
#include <netinet/if_ether.h>
#include <net/if.h>
#include <sys/timerfd.h>
//#include <sys/timerfd.h>
#endif
#include <my_ev.h>
#if defined(__MINGW32__)
#include <winsock2.h>
typedef unsigned char u_int8_t;