[Code] QueryServConnection Global to Singleton Cleanup (#4938)

* [Code] QueryServConnection Global to Singleton Cleanup

* Fix missed file in PR

---------

Co-authored-by: Chris Miles <akkadius1@gmail.com>
This commit is contained in:
Alex King
2025-06-25 15:43:01 -04:00
committed by GitHub
parent 004e2ca63f
commit f304f9cc61
5 changed files with 12 additions and 9 deletions
+7
View File
@@ -15,6 +15,13 @@ public:
void HandleGenericMessage(uint16_t opcode, EQ::Net::Packet &p);
void HandleLFGuildUpdateMessage(uint16_t opcode, EQ::Net::Packet &p);
bool SendPacket(ServerPacket* pack);
static QueryServConnection* Instance()
{
static QueryServConnection instance;
return &instance;
}
private:
std::map<std::string, std::shared_ptr<EQ::Net::ServertalkServerConnection>> m_streams;
std::unique_ptr<EQ::Timer> m_keepalive;