2018-04-10 23:35:16 +00:00
|
|
|
#pragma once
|
2018-04-11 00:13:37 +00:00
|
|
|
#include "Session.h"
|
|
|
|
#include "../dml/MessageManager.h"
|
2018-04-10 23:35:16 +00:00
|
|
|
|
|
|
|
namespace ki
|
|
|
|
{
|
|
|
|
namespace protocol
|
|
|
|
{
|
|
|
|
namespace dml
|
|
|
|
{
|
2018-04-11 00:13:37 +00:00
|
|
|
class DMLSession : public net::Session
|
2018-04-10 23:35:16 +00:00
|
|
|
{
|
|
|
|
public:
|
2018-04-11 00:13:37 +00:00
|
|
|
DMLSession(net::ParticipantType type, uint16_t id,
|
2018-04-10 23:35:16 +00:00
|
|
|
const MessageManager &manager);
|
2018-04-11 00:13:37 +00:00
|
|
|
~DMLSession() = default;
|
2018-04-10 23:35:16 +00:00
|
|
|
protected:
|
|
|
|
void on_application_message(const net::PacketHeader& header) override;
|
|
|
|
virtual void on_message(const Message &message) {}
|
|
|
|
virtual void on_invalid_message() {}
|
|
|
|
private:
|
|
|
|
const MessageManager &m_manager;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|