WSK_PROVIDER_LISTEN_DISPATCH struttura (wsk.h)

La struttura WSK_PROVIDER_LISTEN_DISPATCH specifica la tabella di funzioni del sottosistema WSK per un socket in ascolto.

Sintassi

typedef struct _WSK_PROVIDER_LISTEN_DISPATCH {
  WSK_PROVIDER_BASIC_DISPATCH Basic;
  PFN_WSK_BIND                WskBind;
  PFN_WSK_ACCEPT              WskAccept;
  PFN_WSK_INSPECT_COMPLETE    WskInspectComplete;
  PFN_WSK_GET_LOCAL_ADDRESS   WskGetLocalAddress;
} WSK_PROVIDER_LISTEN_DISPATCH, *PWSK_PROVIDER_LISTEN_DISPATCH;

Members

Basic

Membri dell'oggetto WSK_PROVIDER_BASIC_DISPATCH struttura sono inclusi come membri della struttura WSK_PROVIDER_LISTEN_DISPATCH.

WskBind

Puntatore alla funzione WskBind del sottosistema WskBind per il socket.

WskAccept

Puntatore alla funzione WskAccept del sottosistema WskAccept per il socket.

WskInspectComplete

Puntatore alla funzione WskInspectComplete del sottosistema WskInspectComplete per il socket.

WskGetLocalAddress

Puntatore alla funzione WskGetLocalAddress del sottosistema WskGetLocalAddress per il socket.

Commenti

L'elenco dei membri della struttura WSK_PROVIDER_LISTEN_DISPATCH include un nome senza nome WSK_PROVIDER_BASIC_DISPATCH struttura. Il compilatore incluso nel WDK supporta un'estensione specifica di Microsoft per il linguaggio C che consente strutture non denominate all'interno di dichiarazioni di struttura. Il risultato è che i membri della struttura WSK_PROVIDER_BASIC_DISPATCH sono inclusi nella struttura WSK_PROVIDER_LISTEN_DISPATCH come se fossero membri nativi della struttura WSK_PROVIDER_LISTEN_DISPATCH.

Un'applicazione WSK riceve un puntatore a una struttura WSK_PROVIDER_LISTEN_DISPATCH quando l'applicazione WSK chiama la funzione WskSocket per creare un socket di ascolto. Il puntatore è contenuto nel membro Dispatch della struttura WSK_SOCKET ricevuta dal sottosistema WSK.

Requisiti

Requisito Valore
Client minimo supportato Disponibile in Windows Vista e versioni successive dei sistemi operativi Windows.
Intestazione wsk.h (include Wsk.h)

Vedi anche

WSK_CLIENT_LISTEN_DISPATCH

WSK_PROVIDER_BASIC_DISPATCH

WSK_SOCKET

WskAccept

WskBind

WskCloseSocket

WskControlSocket

WskInspectComplete

WskSocket