The methods of the Peer structure are listed below. For a complete list of Peer structure members, see the Peer Members topic.
|Configures throttling. ENet measures lag over an interval, and alters its throttle parameter based on individual packet round-trip times versus the mean. This parameter controls the probability ENet will drop an unreliable packet. If a packet has a smaller round-trip time than average, the parameter is increased by the acceleration term, causing less packets to be dropped. If a packet has a larger round-trip time than average, the parameter is decreased by the deceleration term, causing more packets to be dropped.
|Gracefully disconnects from the remote computer. A disconnect event occurs.
|Gracefully disconnects from the remote computer after all outgoing data has been sent. A disconnect event occurs.
|Immediately disconnects from the remote computer. A disconnect packet is sent unreliably. No event occurs.
|Gets the remote address.
|GetType (inherited from Object)
|Sends a ping to the remote computer.
|Dequeue a received packet.
|Resets the connection to the remote computer. No disconnect packets are sent, and no event occurs.
|Overloaded. Enqueues a packet for sending using the given data and flags.
|Sets the interval between pings. ENet will automatically send pings when it hasn't received anything from the remote computer.
|Sets timeouts for a response from the remote computer acknowledging its receipt of a reliable packet. When the timeouts are exceeded, a disconnect event occurs.
|ToString (inherited from ValueType)