WSK_CLIENT_STREAM_DISPATCH structure (wsk.h)

The WSK_CLIENT_STREAM_DISPATCH structure specifies a WSK application's dispatch table of event callback functions for a stream socket. Because a stream socket can act either as a listening socket or a connection-oriented socket, this structure allows a stream socket to access the dispatch tables for both the WSK_CLIENT_LISTEN_DISPATCH structure and the WSK_CLIENT_CONNECTION_DISPATCH structure.

Syntax

typedef struct _WSK_CLIENT_STREAM_DISPATCH {
  const WSK_CLIENT_LISTEN_DISPATCH     *Listen;
  const WSK_CLIENT_CONNECTION_DISPATCH *Connect;
} WSK_CLIENT_STREAM_DISPATCH, *PWSK_CLIENT_STREAM_DISPATCH;

Members

Listen

A pointer to a WSK_CLIENT_LISTEN_DISPATCH structure, which specifies a WSK application's dispatch table of event callback functions for a stream socket which is acting as a listening socket.

Connect

A pointer to a WSK_CLIENT_CONNECTION_DISPATCH structure, which specifies a WSK application's dispatch table of event callback functions for a stream socket which is acting as a connection-oriented socket.

Remarks

A WSK application passes a pointer to a WSK_CLIENT_STREAM_DISPATCH structure to the WSK subsystem when the WSK application calls the WskSocket function to create a stream socket.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1703
Header wsk.h (include Wsk.h)

See also

WSK_CLIENT_CONNECTION_DISPATCH

WSK_CLIENT_LISTEN_DISPATCH

WSK_PROVIDER_STREAM_DISPATCH

WskSocket