Re-exports
pub use self::_ENetProtocolCommand as ENetProtocolCommand;
pub use self::_ENetProtocolFlag as ENetProtocolFlag;
pub use self::_ENetSocketType as ENetSocketType;
pub use self::_ENetSocketWait as ENetSocketWait;
pub use self::_ENetSocketOption as ENetSocketOption;
pub use self::_ENetSocketShutdown as ENetSocketShutdown;
pub use self::_ENetPacketFlag as ENetPacketFlag;
pub use self::_ENetPeerState as ENetPeerState;
pub use self::_ENetPeerFlag as ENetPeerFlag;
pub use self::_ENetEventType as ENetEventType;
Structs
- Portable internet address structure.
- An ENet packet compressor for compressing UDP packets before socket sends or receives.
- An ENet event as returned by enet_host_service().
- An ENet host for communicating with peers.
- ENet packet structure.
- An ENet peer which data packets may be sent or received from.
Constants
- a connection request initiated by enet_host_connect has completed. The peer field contains the peer which successfully connected.
- a peer has disconnected. This event is generated on a successful completion of a disconnect initiated by enet_peer_disconnect, if a peer has timed out, or if a connection request intialized by enet_host_connect has timed out. The peer field contains the peer which disconnected. The data field contains user supplied data describing the disconnection, or 0, if none is available.
- no event occurred within the specified time limit
- a packet has been received from a peer. The peer field specifies the peer which sent the packet. The channelID field specifies the channel number upon which the packet was received. The packet field contains the packet that was received; this packet must be destroyed with enet_packet_destroy after use.
- packet will not allocate data, and user must supply it instead
- packet must be received by the target peer and resend attempts should be made until the packet is delivered
- whether the packet has been sent from all queues it has been entered into
- packet will be fragmented using unreliable (instead of reliable) sends if it exceeds the MTU
- packet will not be sequenced with other packets not supported for reliable packets
Statics
Functions
- a64l⚠
- abs⚠
- acct⚠
- atof⚠
- atoi⚠
- atol⚠
- bind⚠
- brk⚠
- div⚠
- dup⚠
- dup2⚠
- ecvt⚠
- Attempts to do a reverse lookup of the host field in the address parameter. @param address address used for reverse lookup @param hostName destination for name, must not be NULL @param nameLength maximum length of hostName. @returns the null-terminated name of the host in hostName on success @retval 0 on success @retval < 0 on failure
- Gives the printable form of the IP address specified in the address parameter. @param address address printed @param hostName destination for name, must not be NULL @param nameLength maximum length of hostName. @returns the null-terminated name of the host in hostName on success @retval 0 on success @retval < 0 on failure
- Attempts to resolve the host named by the parameter hostName and sets the host field in the address parameter if successful. @param address destination to store resolved address @param hostName host name to lookup @retval 0 on success @retval < 0 on failure @returns the address of the given hostName in address on success
- Attempts to parse the printable form of the IP address in the parameter hostName and sets the host field in the address parameter if successful. @param address destination to store the parsed IP address @param hostName IP address to parse @retval 0 on success @retval < 0 on failure @returns the address of the given hostName in address on success
- Shuts down ENet globally. Should be called when a program that has initialized ENet exits.
- Initializes ENet globally. Must be called prior to using any functions in ENet. @returns 0 on success, < 0 on failure
- Initializes ENet globally and supplies user-overridden callbacks. Must be called prior to using any functions in ENet. Do not use enet_initialize() if you use this variant. Make sure the ENetCallbacks structure is zeroed out so that any additional callbacks added in future versions will be properly ignored.
- Gives the linked version of the ENet library. @returns the version number
- @defgroup callbacks ENet internal callbacks @{ @ingroup private
- @}
- @defgroup socket ENet socket functions @{
- Returns the wall-time in milliseconds. Its initial value is unspecified unless otherwise set.
- Sets the current wall-time in milliseconds.
- exit⚠
- fcvt⚠
- fork⚠
- free⚠
- gcvt⚠
- l64a⚠
- labs⚠
- ldiv⚠
- link⚠
- nice⚠
- pipe⚠
- rand⚠
- read⚠
- recv⚠
- sbrk⚠
- send⚠
- sync⚠
Type Aliases
- Portable internet address structure.
- Callback that computes the checksum of the data held in buffers[0:bufferCount-1]
- An ENet packet compressor for compressing UDP packets before socket sends or receives.
- An ENet event as returned by enet_host_service().
- An ENet host for communicating with peers.
- Callback for intercepting received raw UDP packets. Should return 1 to intercept, 0 to ignore, or -1 to propagate an error.
- An ENet peer which data packets may be sent or received from.
- An ENet event type, as specified in @ref ENetEvent.
- Packet flag bit constants.
- size_tDeprecatedenet size_t type alias for keeping compatible with previous versions of this crate.