BWYServerGetServerHandle Function

Overview

Retrieve the server handle of the I/O completion ports TCP/IP server based on the client handle.

Declaration

HANDLE WINAPI BWYServerGetServerHandle(HANDLE hClient);

Parameters

  • hClient
    The client handle.

Return Value

Returns the handle to the server. If the function fails the return value will be NULL.

Remarks

It is very important to remember this function should not be called outside of event callback functions unless wrapped by BWYServerLockClients and BWYServerUnlockClients. This is important because if the client handle becomes invalid due to the client disconnecting you could potentially pass an invalid handle to this function producing unknown results including returning an unknown value.

Windows Requirements

HeaderBWYSystemsServer.h
LibraryBWYSystemsServer.lib
DLLBWYSystemsServer.dll

Linux Requirements

HeaderBWYSystemsServer.h
Shared LibrarylibBWYSystemsServer.so