NDK_FN_CONTROL_CONNECT_EVENTS callback function

The NdkControlConnectEvents (NDK_FN_CONTROL_CONNECT_EVENTS) function pauses and restarts NDK connect event callback functions.

Syntax

NDK_FN_CONTROL_CONNECT_EVENTS NdkFnControlConnectEvents;

void NdkFnControlConnectEvents(
  NDK_LISTENER *pNdkListener,
  BOOLEAN Pause
)
{...}

Parameters

pNdkListener

Pause

A BOOLEAN value that specifies if a connection is paused or restarted. If Pause is TRUE the connection is paused. If Pause is FALSE the connection is restarted.

Return Value

None

Remarks

This function is closely related to the NdkConnectEventCallback (NDK_FN_CONNECT_EVENT_CALLBACK) function. The NDK_FN_CONNECT_EVENT_CALLBACK function is called by an NDK provider to notify a consumer about an incoming connection request. To pause the reception of connect event callbacks, an NDK consumer can pass TRUE in the Pause parameter. When a connection is paused, the incoming connection requests must be treated as if there is no NDK listener (NDK_LISTENER) on the targeted address.

To restart the reception of connect event callbacks, the consumer passes FALSE in the Pause parameter.

Requirements

   
Minimum supported client None supported,Supported in NDIS 6.30 and later.
Minimum supported server Windows Server 2012
Target Platform Windows
Header ndkpi.h (include Ndkpi.h)
IRQL <=DISPATCH_LEVEL

See Also

NDK_FN_CONNECT_EVENT_CALLBACK

NDK_LISTENER