Module enet

Source

Structs§

ENetAcknowledgement
ENetAddress
Portable internet address structure.
ENetChannel
ENetCompressor
An ENet packet compressor for compressing UDP packets before socket sends or receives.
ENetEvent
An ENet event as returned by enet_host_service().
ENetHost
An ENet host for communicating with peers.
ENetIncomingCommand
ENetOutgoingCommand
ENetPacket
ENet packet structure.
ENetPeer
An ENet peer which data packets may be sent or received from.

Enums§

ENetEventType
An ENet event type, as specified in ENetEvent.
ENetPacketFlag
Packet flag bit constants.
ENetPeerFlag
ENetPeerState
ENetSocketOption
ENetSocketShutdown
ENetSocketType
ENetSocketWait

Constants§

ENET_HOST_ANY
ENET_HOST_BANDWIDTH_THROTTLE_INTERVAL
ENET_HOST_BROADCAST
ENET_HOST_DEFAULT_MAXIMUM_PACKET_SIZE
ENET_HOST_DEFAULT_MAXIMUM_WAITING_DATA
ENET_HOST_DEFAULT_MTU
ENET_HOST_RECEIVE_BUFFER_SIZE
ENET_HOST_SEND_BUFFER_SIZE
ENET_PEER_DEFAULT_PACKET_THROTTLE
ENET_PEER_DEFAULT_ROUND_TRIP_TIME
ENET_PEER_FREE_RELIABLE_WINDOWS
ENET_PEER_FREE_UNSEQUENCED_WINDOWS
ENET_PEER_PACKET_LOSS_INTERVAL
ENET_PEER_PACKET_LOSS_SCALE
ENET_PEER_PACKET_THROTTLE_ACCELERATION
ENET_PEER_PACKET_THROTTLE_COUNTER
ENET_PEER_PACKET_THROTTLE_DECELERATION
ENET_PEER_PACKET_THROTTLE_INTERVAL
ENET_PEER_PACKET_THROTTLE_SCALE
ENET_PEER_PING_INTERVAL
ENET_PEER_RELIABLE_WINDOWS
ENET_PEER_RELIABLE_WINDOW_SIZE
ENET_PEER_TIMEOUT_LIMIT
ENET_PEER_TIMEOUT_MAXIMUM
ENET_PEER_TIMEOUT_MINIMUM
ENET_PEER_UNSEQUENCED_WINDOWS
ENET_PEER_UNSEQUENCED_WINDOW_SIZE
ENET_PEER_WINDOW_SIZE_SCALE
ENET_PORT_ANY
ENET_VERSION_MAJOR
ENET_VERSION_MINOR
ENET_VERSION_PATCH

Functions§

enet_address_get_host
Attempts to do a reverse lookup of the host field in the address parameter.
enet_address_get_host_ip
Gives the printable form of the IP address specified in the address parameter.
enet_address_set_host
Gives the printable form of the IP address specified in the address parameter.
enet_address_set_host_ip
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.
enet_crc32
enet_deinitialize
Shuts down ENet globally. Should be called when a program that has initialized ENet exits.
enet_host_bandwidth_limit
enet_host_bandwidth_throttle
enet_host_broadcast
enet_host_channel_limit
enet_host_check_events
enet_host_compress
enet_host_compress_with_range_coder
enet_host_connect
enet_host_create
enet_host_destroy
enet_host_flush
enet_host_random_seed
enet_host_service
enet_initialize
Initializes ENet globally. Must be called prior to using any functions in ENet.
enet_initialize_with_callbacks
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.
enet_linked_version
Gives the linked version of the ENet library.
enet_packet_create
enet_packet_destroy
enet_packet_resize
enet_peer_disconnect
enet_peer_disconnect_later
enet_peer_disconnect_now
enet_peer_dispatch_incoming_reliable_commands
enet_peer_dispatch_incoming_unreliable_commands
enet_peer_on_connect
enet_peer_on_disconnect
enet_peer_ping
enet_peer_ping_interval
enet_peer_queue_acknowledgement
enet_peer_queue_incoming_command
enet_peer_queue_outgoing_command
enet_peer_receive
enet_peer_reset
enet_peer_reset_queues
enet_peer_send
enet_peer_setup_outgoing_command
enet_peer_throttle
enet_peer_throttle_configure
enet_peer_timeout
enet_protocol_command_size
enet_range_coder_compress
enet_range_coder_create
enet_range_coder_decompress
enet_range_coder_destroy
enet_socket_accept
enet_socket_bind
enet_socket_create
enet_socket_destroy
enet_socket_get_address
enet_socket_get_option
enet_socket_listen
enet_socket_receive
enet_socket_send
enet_socket_set_option
enet_socket_shutdown
enet_socket_wait
enet_socketset_select
enet_time_get
Returns the wall-time in milliseconds. Its initial value is unspecified unless otherwise set.
enet_time_set
Sets the current wall-time in milliseconds.

Type Aliases§

ENetChecksumCallback
Callback that computes the checksum of the data held in buffers[0:bufferCount-1]
ENetInterceptCallback
Callback for intercepting received raw UDP packets. Should return 1 to intercept, 0 to ignore, or -1 to propagate an error.
ENetPacketFreeCallback
ENetVersion