WSK_TRANSPORT structure (wsk.h)

The WSK_TRANSPORT structure specifies an available transport that is supported by the WSK subsystem.

Syntax

typedef struct _WSK_TRANSPORT {
  USHORT         Version;
  USHORT         SocketType;
  ULONG          Protocol;
  ADDRESS_FAMILY AddressFamily;
  GUID           ProviderId;
} WSK_TRANSPORT, *PWSK_TRANSPORT;

Members

Version

The version of the transport. The format of the version number is transport-specific.

SocketType

The type of socket that is supported by the transport. This member can be one of the following:

SOCK_STREAM

Supports reliable connection-oriented byte stream communication.

SOCK_DGRAM

Supports unreliable connectionless datagram communication.

SOCK_RAW

Supports raw access to the transport protocol.

For more information about the socket types that are supported for each supported address family, see
WSK Address Families.

Protocol

The protocol that is supported by the transport. For more information about the protocols that are supported for each supported address family, see WSK Address Families.

AddressFamily

The address family that is supported by the transport. For more information about supported address families, see WSK Address Families.

ProviderId

The identifier of the transport provider that implements the transport.

Remarks

A WSK application passes a pointer to an array of WSK_TRANSPORT structures to the WskControlClient function when specifying the WSK_TRANSPORT_LIST_QUERY control code. The WSK subsystem fills in the array with the list of available transports that can be used for socket communication. When a WSK application calls the WskSocket or WskSocketConnect function to create a new socket, it can pass the values contained in the AddressFamily, SocketType, and Protocol members of a returned WSK_TRANSPORT structure for the AddressFamily, SocketType, and Protocol parameters.

A single transport provider can support multiple combinations of values for the AddressFamily, SocketType, and Protocol members.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Header wsk.h (include Wsk.h)

See also

WskControlClient

WskSocket

WskSocketConnect