- address
ENetAddress address()
Trivial getters for _ENetPeer struct.
- channelCount
size_t channelCount()
Undocumented in source. Be warned that the author may not have intended to support it.
- disconnect
void disconnect(uint data)
Request a disconnection from a peer.
- disconnectLater
void disconnectLater(uint data)
Request a disconnection from a peer, but only after all queued
outgoing packets are sent.
- disconnectNow
void disconnectNow(uint data)
Force an immediate disconnection from a peer
- incomingBandwidth
uint incomingBandwidth()
Undocumented in source. Be warned that the author may not have intended to support it.
- outgoingBandwidth
uint outgoingBandwidth()
Undocumented in source. Be warned that the author may not have intended to support it.
- packetLoss
uint packetLoss()
Undocumented in source. Be warned that the author may not have intended to support it.
- ping
void ping()
Sends a ping request to a peer.
- receive
ReceivedPacket receive()
Attempts to dequeue any incoming queued packet.
- reset
void reset()
Forcefully disconnects a peer.
- roundTripTime
uint roundTripTime()
Undocumented in source. Be warned that the author may not have intended to support it.
- send
void send(Packet packet, ubyte channelID)
Queues a Packet's internal ENetPacket to be sent. Dirties the sent
packet, meaning it cannot be changed.
- setTimeout
void setTimeout(uint limit, uint min, uint max)
Sets the timeout parameters for a peer.
- state
ENetPeerState state()
Undocumented in source. Be warned that the author may not have intended to support it.
- throttleConfigure
void throttleConfigure(uint interval, uint accel, uint decel)
Sets the throttle parameters for a peer. The throttle represents a
probability that an unreliable packet should not be dropped and thus
sent by ENet to the peer.
Encompasses an ENetPeer with an object-oriented wrapper.