Orxonox  0.0.5 Codename: Arcturus
Macros | Functions | Variables
packet.c File Reference

ENet packet management functions. More...

#include <string.h>
#include "enet/enet.h"

Macros

#define ENET_BUILDING_LIB   1
 

Functions

enet_uint32 enet_crc32 (const ENetBuffer *buffers, size_t bufferCount)
 
ENetPacketenet_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...
 
static void initialize_crc32 ()
 
static enet_uint32 reflect_crc (int val, int bits)
 

Variables

static enet_uint32 crcTable [256]
 
static int initializedCRC32 = 0
 

Detailed Description

ENet packet management functions.

Macro Definition Documentation

#define ENET_BUILDING_LIB   1