31 lines
406 B
C++
31 lines
406 B
C++
#include <a8/a8.h>
|
|
|
|
#include <memory.h>
|
|
#include <unistd.h>
|
|
|
|
#include <arpa/inet.h>
|
|
#include <fcntl.h>
|
|
#include <sys/epoll.h>
|
|
#include <netinet/tcp.h>
|
|
|
|
#include <thread>
|
|
|
|
#include <a8/ioloop.h>
|
|
|
|
void IoLoop::Init()
|
|
{
|
|
epoll_fd = ::epoll_create(10000);
|
|
assert(epoll_fd != a8::INVALID_FD);
|
|
}
|
|
|
|
void IoLoop::UnInit()
|
|
{
|
|
::close(epoll_fd);
|
|
epoll_fd = a8::INVALID_FD;
|
|
}
|
|
|
|
void IoLoop::Update()
|
|
{
|
|
|
|
}
|