basic epoll implementation

This commit is contained in:
2019-05-20 13:28:51 +02:00
parent 8e66213d6e
commit 6dbe2c26d8
3 changed files with 30 additions and 6 deletions

View File

@ -141,6 +141,11 @@ void Socket::cleanUp() {
}
int Socket::getFD()
{
return sockDesc;
}
unsigned short Socket::resolveService(const string &service,
const string &protocol) {
struct servent *serv; /* Structure containing service information */