mirror of https://github.com/SeanOMik/libki.git
net: Fix namespace typo in DMLSession
Forgot to change these to net after moving them from dml
This commit is contained in:
parent
2acb22214c
commit
1d6855581a
|
@ -6,20 +6,20 @@ namespace ki
|
|||
{
|
||||
namespace protocol
|
||||
{
|
||||
namespace dml
|
||||
namespace net
|
||||
{
|
||||
class DMLSession : public net::Session
|
||||
class DMLSession : public Session
|
||||
{
|
||||
public:
|
||||
DMLSession(net::ParticipantType type, uint16_t id,
|
||||
const MessageManager &manager);
|
||||
DMLSession(ParticipantType type, uint16_t id,
|
||||
const dml::MessageManager &manager);
|
||||
~DMLSession() = default;
|
||||
protected:
|
||||
void on_application_message(const net::PacketHeader& header) override;
|
||||
virtual void on_message(const Message &message) {}
|
||||
void on_application_message(const PacketHeader& header) override;
|
||||
virtual void on_message(const dml::Message &message) {}
|
||||
virtual void on_invalid_message() {}
|
||||
private:
|
||||
const MessageManager &m_manager;
|
||||
const dml::MessageManager &m_manager;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,13 +4,13 @@ namespace ki
|
|||
{
|
||||
namespace protocol
|
||||
{
|
||||
namespace dml
|
||||
namespace net
|
||||
{
|
||||
DMLSession::DMLSession(const net::ParticipantType type, const uint16_t id,
|
||||
const MessageManager& manager)
|
||||
: net::Session(type, id), m_manager(manager) {}
|
||||
DMLSession::DMLSession(const ParticipantType type, const uint16_t id,
|
||||
const dml::MessageManager& manager)
|
||||
: Session(type, id), m_manager(manager) {}
|
||||
|
||||
void DMLSession::on_application_message(const net::PacketHeader& header)
|
||||
void DMLSession::on_application_message(const PacketHeader& header)
|
||||
{
|
||||
const auto *message = m_manager.message_from_binary(m_data_stream);
|
||||
if (!message)
|
||||
|
|
Loading…
Reference in New Issue