SocketEvents: inherit from Stream

refs #6477
This commit is contained in:
Alexander A. Klimov 2018-07-24 14:24:56 +02:00 committed by Michael Friedrich
parent 78e470996d
commit 0b03a3d8f8
2 changed files with 5 additions and 2 deletions

View File

@ -22,6 +22,7 @@
#include "base/i2-base.hpp"
#include "base/socket.hpp"
#include "base/stream.hpp"
#include <boost/thread/condition_variable.hpp>
#include <thread>
@ -37,9 +38,11 @@ namespace icinga
*
* @ingroup base
*/
class SocketEvents
class SocketEvents : public Stream
{
public:
DECLARE_PTR_TYPEDEFS(SocketEvents);
~SocketEvents();
virtual void OnEvent(int revents);

View File

@ -43,7 +43,7 @@ enum TlsAction
*
* @ingroup base
*/
class TlsStream final : public Stream, private SocketEvents
class TlsStream final : public SocketEvents
{
public:
DECLARE_PTR_TYPEDEFS(TlsStream);