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
|
|
|
|
{
|
2018-04-11 00:16:21 +00:00
|
|
|
namespace net
|
2018-04-10 23:35:16 +00:00
|
|
|
{
|
2018-04-11 00:16:21 +00:00
|
|
|
class DMLSession : public Session
|
2018-04-10 23:35:16 +00:00
|
|
|
{
|
|
|
|
public:
|
2018-04-11 00:16:21 +00:00
|
|
|
DMLSession(ParticipantType type, uint16_t id,
|
|
|
|
const dml::MessageManager &manager);
|
2018-04-11 00:13:37 +00:00
|
|
|
~DMLSession() = default;
|
2018-04-10 23:35:16 +00:00
|
|
|
protected:
|
2018-04-11 00:16:21 +00:00
|
|
|
void on_application_message(const PacketHeader& header) override;
|
|
|
|
virtual void on_message(const dml::Message &message) {}
|
2018-04-10 23:35:16 +00:00
|
|
|
virtual void on_invalid_message() {}
|
|
|
|
private:
|
2018-04-11 00:16:21 +00:00
|
|
|
const dml::MessageManager &m_manager;
|
2018-04-10 23:35:16 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|