19 bool send(std::unique_ptr<IPacket> packet, uint8_t channelID)
override;
26 [[nodiscard]] uint32_t
getID()
const override;
28 void setData(
void *data)
override;
29 [[nodiscard]]
void *
getData()
const override;
PeerState
Represents the connection state of a peer.
void setData(void *data) override
Set application-specific data associated with this peer.
uint32_t getRoundTripTime() const override
Get the round-trip time (ping) to this peer.
void * getData() const override
Get application-specific data associated with this peer.
ENetPeer * getNativePeer() const
PeerState getState() const override
Get the current state of this peer.
void disconnectNow(uint32_t data) override
Force an immediate disconnect from this peer.
void disconnectLater(uint32_t data) override
Disconnect from this peer after all queued packets are sent.
void disconnect(uint32_t data) override
Disconnect from this peer.
bool send(std::unique_ptr< IPacket > packet, uint8_t channelID) override
Send a packet to this peer.
std::unique_ptr< ENetAddressWrapper > _cachedAddress
const IAddress & getAddress() const override
Get the address of this peer.
uint32_t getID() const override
Get a unique identifier for this peer.
Interface representing a network address (IP + port).
Interface representing a remote peer in the network.