pub type ENetPeer = _ENetPeer;
Expand description
An ENet peer which data packets may be sent or received from.
No fields should be modified unless otherwise specified.
Aliased Type§
struct ENetPeer {Show 60 fields
pub dispatchList: _ENetListNode,
pub host: *mut _ENetHost,
pub outgoingPeerID: u16,
pub incomingPeerID: u16,
pub connectID: u32,
pub outgoingSessionID: u8,
pub incomingSessionID: u8,
pub address: _ENetAddress,
pub data: *mut c_void,
pub state: u32,
pub channels: *mut _ENetChannel,
pub channelCount: usize,
pub incomingBandwidth: u32,
pub outgoingBandwidth: u32,
pub incomingBandwidthThrottleEpoch: u32,
pub outgoingBandwidthThrottleEpoch: u32,
pub incomingDataTotal: u32,
pub outgoingDataTotal: u32,
pub lastSendTime: u32,
pub lastReceiveTime: u32,
pub nextTimeout: u32,
pub earliestTimeout: u32,
pub packetLossEpoch: u32,
pub packetsSent: u32,
pub packetsLost: u32,
pub packetLoss: u32,
pub packetLossVariance: u32,
pub packetThrottle: u32,
pub packetThrottleLimit: u32,
pub packetThrottleCounter: u32,
pub packetThrottleEpoch: u32,
pub packetThrottleAcceleration: u32,
pub packetThrottleDeceleration: u32,
pub packetThrottleInterval: u32,
pub pingInterval: u32,
pub timeoutLimit: u32,
pub timeoutMinimum: u32,
pub timeoutMaximum: u32,
pub lastRoundTripTime: u32,
pub lowestRoundTripTime: u32,
pub lastRoundTripTimeVariance: u32,
pub highestRoundTripTimeVariance: u32,
pub roundTripTime: u32,
pub roundTripTimeVariance: u32,
pub mtu: u32,
pub windowSize: u32,
pub reliableDataInTransit: u32,
pub outgoingReliableSequenceNumber: u16,
pub acknowledgements: _ENetList,
pub sentReliableCommands: _ENetList,
pub outgoingSendReliableCommands: _ENetList,
pub outgoingCommands: _ENetList,
pub dispatchedCommands: _ENetList,
pub flags: u16,
pub reserved: u16,
pub incomingUnsequencedGroup: u16,
pub outgoingUnsequencedGroup: u16,
pub unsequencedWindow: [u32; 32],
pub eventData: u32,
pub totalWaitingData: usize,
}
Fields§
§dispatchList: _ENetListNode
§host: *mut _ENetHost
§outgoingPeerID: u16
§incomingPeerID: u16
§connectID: u32
§outgoingSessionID: u8
§incomingSessionID: u8
§address: _ENetAddress
< Internet address of the peer
data: *mut c_void
< Application private data, may be freely modified
state: u32
§channels: *mut _ENetChannel
§channelCount: usize
< Number of channels allocated for communication with peer
incomingBandwidth: u32
< Downstream bandwidth of the client in bytes/second
outgoingBandwidth: u32
< Upstream bandwidth of the client in bytes/second
incomingBandwidthThrottleEpoch: u32
§outgoingBandwidthThrottleEpoch: u32
§incomingDataTotal: u32
§outgoingDataTotal: u32
§lastSendTime: u32
§lastReceiveTime: u32
§nextTimeout: u32
§earliestTimeout: u32
§packetLossEpoch: u32
§packetsSent: u32
§packetsLost: u32
§packetLoss: u32
< mean packet loss of reliable packets as a ratio with respect to the constant ENET_PEER_PACKET_LOSS_SCALE
packetLossVariance: u32
§packetThrottle: u32
§packetThrottleLimit: u32
§packetThrottleCounter: u32
§packetThrottleEpoch: u32
§packetThrottleAcceleration: u32
§packetThrottleDeceleration: u32
§packetThrottleInterval: u32
§pingInterval: u32
§timeoutLimit: u32
§timeoutMinimum: u32
§timeoutMaximum: u32
§lastRoundTripTime: u32
§lowestRoundTripTime: u32
§lastRoundTripTimeVariance: u32
§highestRoundTripTimeVariance: u32
§roundTripTime: u32
< mean round trip time (RTT), in milliseconds, between sending a reliable packet and receiving its acknowledgement
roundTripTimeVariance: u32
§mtu: u32
§windowSize: u32
§reliableDataInTransit: u32
§outgoingReliableSequenceNumber: u16
§acknowledgements: _ENetList
§sentReliableCommands: _ENetList
§outgoingSendReliableCommands: _ENetList
§outgoingCommands: _ENetList
§dispatchedCommands: _ENetList
§flags: u16
§reserved: u16
§incomingUnsequencedGroup: u16
§outgoingUnsequencedGroup: u16
§unsequencedWindow: [u32; 32]
§eventData: u32
§totalWaitingData: usize