|
ENet
v1.3.17
Reliable UDP networking library
|
Functions | |
| enet_uint32 | enet_crc32 (const ENetBuffer *buffers, size_t bufferCount) |
| ENetPacket * | enet_packet_create (const void *data, size_t dataLength, enet_uint32 flags) |
| Creates a packet that may be sent to a peer. More... | |
| void | enet_packet_destroy (ENetPacket *packet) |
| Destroys the packet and deallocates its data. More... | |
| int | enet_packet_resize (ENetPacket *packet, size_t dataLength) |
| Attempts to resize the data in the packet to length specified in the dataLength parameter. More... | |
| enet_uint32 enet_crc32 | ( | const ENetBuffer * | buffers, |
| size_t | bufferCount | ||
| ) |
#include <packet.c>
| ENetPacket* enet_packet_create | ( | const void * | data, |
| size_t | dataLength, | ||
| enet_uint32 | flags | ||
| ) |
#include <packet.c>
Creates a packet that may be sent to a peer.
| data | initial contents of the packet's data; the packet's data will remain uninitialized if data is NULL. |
| dataLength | size of the data allocated for this packet |
| flags | flags for this packet as described for the ENetPacket structure. |
| void enet_packet_destroy | ( | ENetPacket * | packet | ) |
#include <packet.c>
Destroys the packet and deallocates its data.
| packet | packet to be destroyed |
| int enet_packet_resize | ( | ENetPacket * | packet, |
| size_t | dataLength | ||
| ) |
#include <packet.c>
Attempts to resize the data in the packet to length specified in the dataLength parameter.
| packet | packet to resize |
| dataLength | new size for the packet data |
1.8.13