Archived
1
0

abstract out epoll and make room for kqueue

This commit is contained in:
Jeff Becker
2018-05-04 08:17:49 -04:00
parent b227bf6ff1
commit 7ccd554c2d
8 changed files with 252 additions and 225 deletions

View File

@@ -21,7 +21,7 @@ int main(int argc, char *argv[])
nntpchan::Crypto crypto;
nntpchan::Mainloop loop;
nntpchan::ev::Loop * loop = nntpchan::NewMainLoop();
nntpchan::NNTPServer * nntp = new nntpchan::NNTPServer(loop);
@@ -143,8 +143,9 @@ int main(int argc, char *argv[])
return 1;
}
loop.Run();
loop->Run();
std::cerr << "Exiting" << std::endl;
delete loop;
}
else
{