Share via


Registering a Network Direct Provider

Network Direct providers use the same mechanisms defined for Windows Sockets Direct providers to register their providers.

To register your provider, call the WSCInstallProvider function. The following fields of the WSAPROTOCOL_INFO structure identify the provider as a Network Direct provider.

Field Supported values Notes
dwServiceFlags1
  • XP1_GUARANTEED_DELIVERY
  • XP1_GUARANTEED_ORDER
  • XP1_MESSAGE_ORIENTED
  • XP1_CONNECT_DATA
Network Direct allows exchanging data during connection establishment.
dwProviderFlags
  • PFL_HIDDEN
  • PFL_NETWORKDIRECT_PROVIDER (0x00000010)
  • Prevents the WSAEnumProtocols function from returning the provider in the enumeration results.
  • Identifies the provider as a Network Direct provider.
iVersion 1 The current version of the Network Direct SPI.
iAddressFamily AF_INET or AF_INET6 Providers that support both IPv4 and IPv6 addresses do not need to register their provider multiple times—a single registration as AF_INET6 is sufficient. The Network Direct framework can support IPv4 and IPv6 addresses being reported simultaneously.
iSocketType -1 (0xFFFFFFFF)
iProtocol 0 No protocols are defined by the Network Direct architecture.
iProtocolMaxOffset 0

 

For details on using this information to get an interface to the provider, see Instantiating a Network Direct Provider.

 

 

Send comments about this topic to Microsoft

Build date: 7/2/2010