ENet global functions


Functions

ENET_API int enet_initialize (void)
 Initializes ENet globally.
ENET_API int enet_initialize_with_callbacks (ENetVersion version, const ENetCallbacks *inits)
 Initializes ENet globally and supplies user-overridden callbacks.
ENET_API void enet_deinitialize (void)
 Shuts down ENet globally.


Function Documentation

ENET_API void enet_deinitialize ( void   ) 

Should be called when a program that has initialized ENet exits.

ENET_API int enet_initialize ( void   ) 

Must be called prior to using any functions in ENet.

Returns:
0 on success, < 0 on failure

ENET_API int enet_initialize_with_callbacks ( ENetVersion  version,
const ENetCallbacks *  inits 
)

Must be called prior to using any functions in ENet. Do not use enet_initialize() if you use this variant.

Parameters:
version the constant ENET_VERSION should be supplied so ENet knows which version of ENetCallbacks struct to use
inits user-overriden callbacks where any NULL callbacks will use ENet's defaults
Returns:
0 on success, < 0 on failure


Generated on Wed Jun 6 14:33:50 2007 for enet by  doxygen 1.5.1