added TcpConnection::close() method

This commit is contained in:
Emiel Bruijntjes 2015-11-01 12:20:12 +01:00
parent 9e08c6932f
commit b610ac5183
1 changed files with 11 additions and 0 deletions

View File

@ -112,6 +112,17 @@ public:
* @param events What sort of events occured?
*/
void process(int fd, int flags);
/**
* Close the connection
* This closes all channels and the TCP connection
* @return bool
*/
bool close()
{
// pass to the underlying connection
return _connection.close();
}
};
/**