mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
UCS support decided to not rewrite it for now. Maybe later now that it's easier to work with
This commit is contained in:
+8
-8
@@ -2,22 +2,22 @@
|
||||
#define UCS_H
|
||||
|
||||
#include "../common/types.h"
|
||||
#include "../common/emu_tcp_connection.h"
|
||||
#include "../common/net/servertalk_server_connection.h"
|
||||
#include "../common/servertalk.h"
|
||||
#include <memory>
|
||||
|
||||
class UCSConnection
|
||||
{
|
||||
public:
|
||||
UCSConnection();
|
||||
void SetConnection(EmuTCPConnection *inStream);
|
||||
bool Process();
|
||||
bool SendPacket(ServerPacket* pack);
|
||||
void Disconnect() { if(Stream) Stream->Disconnect(); }
|
||||
void SetConnection(std::shared_ptr<EQ::Net::ServertalkServerConnection> connection);
|
||||
void ProcessPacket(uint16 opcode, EQ::Net::Packet &p);
|
||||
void SendPacket(ServerPacket* pack);
|
||||
void Disconnect() { if(Stream && Stream->Handle()) Stream->Handle()->Disconnect(); }
|
||||
void SendMessage(const char *From, const char *Message);
|
||||
private:
|
||||
inline uint32 GetIP() const { return Stream ? Stream->GetrIP() : 0; }
|
||||
EmuTCPConnection *Stream;
|
||||
bool authenticated;
|
||||
inline std::string GetIP() const { return (Stream && Stream->Handle()) ? Stream->Handle()->RemoteIP() : 0; }
|
||||
std::shared_ptr<EQ::Net::ServertalkServerConnection> Stream;
|
||||
};
|
||||
|
||||
#endif /*UCS_H_*/
|
||||
|
||||
Reference in New Issue
Block a user