Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kApiLib_EnableNetworkInitialization | ( | kBool | enable | ) |

Enables or disables initialization of network services by this library.

On Windows, by default, the WSAStartup function is used to initialize the winsock interface. Use the kApiLib_EnableNetworkInitialization function (with kFALSE argument) to suppress any calls to WSAStartup/WSACleanup.

This function is not thread-safe and should be called before calling kApiLib_Construct.

Parameters

  enable | kTRUE for automatic network initialization; kFALSE otherwise.

Returns
  Operation status.