BWYServerLockClients Function

Overview

Prevents read/write errors when accessing or modifying client information outside of the server callback functions.

Declaration

VOID WINAPI BWYServerLockClients(HANDLE hServer);

Parameters

  • hServer
    The server handle of the I/O completion ports TCP/IP server whose clients are to be locked.

Return Value

This function does not return a value.

Remarks

When calling a function that reads from or writes to a client handle which was not passed to your application through one of the available callback functions, you must first call this function to prevent the server from changing any memory associated with the client handles. Failure to do so will lead to an unstable application and potential read/write access violations.

To prevent deadlocks in your application, every call to this function must be followed by a call to BWYServerUnlockClients.

Windows Requirements

HeaderBWYSystemsServer.h
LibraryBWYSystemsServer.lib
DLLBWYSystemsServer.dll

Linux Requirements

HeaderBWYSystemsServer.h
Shared LibrarylibBWYSystemsServer.so