Functions
network.h File Reference

Network module basics. More...

Functions

VTM_API int vtm_module_network_init (void)
 
VTM_API void vtm_module_network_end (void)
 

Function Documentation

VTM_API int vtm_module_network_init ( void  )

Initializes the network module.

This function must be called before you can use any other network function. On Windows this initializes the Windows Socket Api (WSA).

Returns
VTM_OK if initialization was successful or is not needed on current platform
VTM_ERROR if an error occured
VTM_API void vtm_module_network_end ( void  )

Deinitializes the network module.

All allocated resources are released.

On Windows this will shut down the WSA subsystem.