Class Connection

Inheritance Relationships

Base Type

  • public std::enable_shared_from_this< Connection >

Class Documentation

class core::networking::Connection : public std::enable_shared_from_this<Connection>

Public Functions

Connection(boost::asio::io_context &context, std::shared_ptr<Server> server, uint8_t securityLevel, uint32_t *defaultKey)
~Connection()
void Start()
void PostClose()
void PostShutdown()
void Send(std::shared_ptr<Packet> packet)
void SendAsReply(std::shared_ptr<Packet> request, std::shared_ptr<Packet> reply)
void SetPhase(uint8_t phase)
uint8_t GetPhase()
bool HasProperty(const std::string &property) const
void SetProperty(const std::string &property, ConnectionProperty value)
ConnectionProperty GetProperty(const std::string &property) const
template<typename T>
T GetProperty(const std::string &property) const
uint64_t GetId() const
void SetId(uint64_t id)
std::shared_ptr<game::environment::Player> GetPlayer() const
void SetPlayer(std::shared_ptr<game::environment::Player> player)
void HandleHandshake(std::shared_ptr<Packet> packet)
void HandleKeyAgreement(std::shared_ptr<Packet> packet)
std::shared_ptr<Server> GetServer()
boost::asio::ip::tcp::socket &GetSocket()
void ChangeXTEAKey(uint32_t *key)
uint8_t GetSecurityLevel()

Public Static Functions

std::shared_ptr<Connection> Create(boost::asio::io_context &context, std::shared_ptr<Server> server, uint8_t securityLevel, uint32_t *defaultXTEAKeys)