mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-21 01:51:30 +00:00
20 lines
549 B
C++
20 lines
549 B
C++
#pragma once
|
|
|
|
#include "../common/net/servertalk_server_connection.h"
|
|
#include <memory>
|
|
#include <list>
|
|
|
|
class Router
|
|
{
|
|
public:
|
|
Router();
|
|
~Router();
|
|
|
|
void AddConnection(std::shared_ptr<EQ::Net::ServertalkServerConnection> connection);
|
|
void RemoveConnection(std::shared_ptr<EQ::Net::ServertalkServerConnection> connection);
|
|
private:
|
|
std::list<std::shared_ptr<EQ::Net::ServertalkServerConnection>> m_connections;
|
|
|
|
void OnRouterMessage(std::shared_ptr<EQ::Net::ServertalkServerConnection> connection, uint16 opcode, const EQ::Net::Packet &p);
|
|
};
|