Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 981 Bytes

ListenerStop.md

File metadata and controls

33 lines (22 loc) · 981 Bytes

ListenerStop function

Stops listening for incoming connection requests.

Syntax

typedef
_IRQL_requires_max_(PASSIVE_LEVEL)
void
(QUIC_API * QUIC_LISTENER_STOP_FN)(
    _In_ _Pre_defensive_ HQUIC Listener
    );

Parameters

Listener

A valid handle to an open, and started, listener object.

Remarks

ListenerStop is called when the server application wants to stop receiving new incoming connections. It blocks until all listener events that are in progress complete, and once it returns the server application is guaranteed to not receive any further listener events. The server application MUST NOT call ListenerStop from within any callback, as this will deadlock MsQuic.

If the server application wishes to resume receiving new connections, it may call ListenerStart on the same listener, again.

See Also

ListenerOpen
ListenerClose
ListenerStart