Gets the remote IP address of the peer.
Gets the remote UDP port number of the peer.
Gets the current round-trip time (RTT) in milliseconds.
Gets the current ENet connection state for this peer.
Initiates a graceful disconnect request for this peer.
Optional integer disconnect code.
Schedules a disconnect for this peer after all queued outgoing packets are delivered.
Optional integer disconnect code.
Forces an immediate abrupt disconnect for this peer without waiting for acknowledgments.
Optional integer disconnect code.
Sends a ping request to update peer round-trip time calculations.
Resets peer connection state immediately, clearing allocated core resources.
Sends a WebAssembly ENet packet to the peer.
ENet Packet instance to transmit.
ENet channel ID (defaults to 0).
Encapsulates raw byte data into an ENet Packet and transmits it to the peer.
Byte array containing payload data.
ENet channel ID (defaults to 0).
Reliability flag (0 = Unreliable, 1 = Reliable, 2 = Unsequenced).
Represents a connected remote ENet peer endpoint. Provides methods for transmitting packets, querying state, and managing connection lifecycle.