diff --git a/include/tcpconnection.h b/include/tcpconnection.h index b3c18ba..1673193 100644 --- a/include/tcpconnection.h +++ b/include/tcpconnection.h @@ -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(); + } }; /**