Orxonox
0.0.5 Codename: Arcturus
|
An ENet packet compressor for compressing UDP packets before socket sends or receives. More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/external/enet/enet.h>
Public Member Functions | |
size_t (ENET_CALLBACK *compress)(void *context | |
Compresses from inBuffers[0:inBufferCount-1], containing inLimit bytes, to outData, outputting at most outLimit bytes. More... | |
size_t (ENET_CALLBACK *decompress)(void *context | |
Decompresses from inData, containing inLimit bytes, to outData, outputting at most outLimit bytes. More... | |
void (ENET_CALLBACK *destroy)(void *context) | |
Destroys the context when compression is disabled or the host is destroyed. More... | |
Public Attributes | |
void * | context |
Context data for the compressor. More... | |
const ENetBuffer size_t | inBufferCount |
const ENetBuffer * | inBuffers |
const enet_uint8 * | inData |
const ENetBuffer size_t size_t | inLimit |
const enet_uint8 size_t | inLimit |
const ENetBuffer size_t size_t enet_uint8 * | outData |
const enet_uint8 size_t enet_uint8 * | outData |
const ENetBuffer size_t size_t enet_uint8 size_t | outLimit |
const enet_uint8 size_t enet_uint8 size_t | outLimit |
An ENet packet compressor for compressing UDP packets before socket sends or receives.
_ENetCompressor::size_t | ( | ENET_CALLBACK * | compress | ) |
Compresses from inBuffers[0:inBufferCount-1], containing inLimit bytes, to outData, outputting at most outLimit bytes.
Should return 0 on failure.
_ENetCompressor::size_t | ( | ENET_CALLBACK * | decompress | ) |
Decompresses from inData, containing inLimit bytes, to outData, outputting at most outLimit bytes.
Should return 0 on failure.
_ENetCompressor::void | ( | ENET_CALLBACK * | destroy | ) |
Destroys the context when compression is disabled or the host is destroyed.
May be NULL.
void* _ENetCompressor::context |
Context data for the compressor.
Must be non-NULL.
const ENetBuffer size_t _ENetCompressor::inBufferCount |
const ENetBuffer* _ENetCompressor::inBuffers |
const enet_uint8* _ENetCompressor::inData |
const ENetBuffer size_t size_t _ENetCompressor::inLimit |
const enet_uint8 size_t _ENetCompressor::inLimit |
const ENetBuffer size_t size_t enet_uint8* _ENetCompressor::outData |
const enet_uint8 size_t enet_uint8* _ENetCompressor::outData |
const ENetBuffer size_t size_t enet_uint8 size_t _ENetCompressor::outLimit |
const enet_uint8 size_t enet_uint8 size_t _ENetCompressor::outLimit |