#ifndef QueryServ_H #define QueryServ_H #include "../common/types.h" #include "../common/net/servertalk_server.h" #include "../common/servertalk.h" #include "../common/event/timer.h" class QueryServConnection { public: QueryServConnection(); void AddConnection(std::shared_ptr connection); void RemoveConnection(std::shared_ptr connection); void HandleGenericMessage(uint16_t opcode, EQ::Net::Packet &p); void HandleLFGuildUpdateMessage(uint16_t opcode, EQ::Net::Packet &p); bool SendPacket(ServerPacket* pack); void OnKeepAlive(EQ::Timer *t); private: std::map> m_streams; std::unique_ptr m_keepalive; }; #endif /*QueryServ_H_*/