trigger onDisconnect

This commit is contained in:
badaix 2015-09-01 22:53:16 +02:00
parent e05e2fdd9d
commit e5698d8ab1
4 changed files with 24 additions and 5 deletions

View file

@ -42,6 +42,7 @@ class MessageReceiver
{
public:
virtual void onMessageReceived(ServerSession* connection, const msg::BaseMessage& baseMessage, char* buffer) = 0;
virtual void onDisconnect(ServerSession* connection) = 0;
};
@ -96,6 +97,7 @@ protected:
void getNextMessage();
void reader();
void writer();
void setActive(bool active);
std::atomic<bool> active_;
std::atomic<bool> streamActive_;