Working on world <-> zone communication needs a ton of work really need to rewrite how world works with zones.

This commit is contained in:
KimLS
2017-01-02 22:38:47 -08:00
parent 0264c0d60a
commit 2447c38c82
28 changed files with 3080 additions and 3304 deletions
+6 -8
View File
@@ -2,22 +2,20 @@
#define QueryServ_H
#include "../common/types.h"
#include "../common/emu_tcp_connection.h"
#include "../common/net/servertalk_server.h"
#include "../common/servertalk.h"
class QueryServConnection
{
public:
QueryServConnection();
void SetConnection(EmuTCPConnection *inStream);
bool Process();
void AddConnection(std::shared_ptr<EQ::Net::ServertalkServerConnection> connection);
void RemoveConnection(std::shared_ptr<EQ::Net::ServertalkServerConnection> connection);
void HandleGenericMessage(uint16_t opcode, EQ::Net::Packet &p);
void HandleLFGuildUpdateMessage(uint16_t opcode, EQ::Net::Packet &p);
bool SendPacket(ServerPacket* pack);
void Disconnect() { if(Stream) Stream->Disconnect(); }
void SendMessage(const char *From, const char *Message);
private:
inline uint32 GetIP() const { return Stream ? Stream->GetrIP() : 0; }
EmuTCPConnection *Stream;
bool authenticated;
std::map<std::string, std::shared_ptr<EQ::Net::ServertalkServerConnection>> m_streams;
};
#endif /*QueryServ_H_*/