WSAPROTOCOLCHAIN Structure

The WSAPROTOCOLCHAIN structure contains a counted list of Catalog Entry identifiers that comprise a protocol chain.

Syntax

typedef struct _WSAPROTOCOLCHAIN {
    int ChainLen;
    DWORD ChainEntries[MAX_PROTOCOL_CHAIN];
} WSAPROTOCOLCHAIN, *LPWSAPROTOCOLCHAIN;  

Members

ChainLen
Length of the chain, in bytes. The following settings apply:

Setting ChainLen to zero indicates a layered protocol

Setting ChainLen to one indicates a base protocol

Setting ChainLen to greater than one indicates a protocol chain

ChainEntries
Array of protocol chain entries.

Remarks

If the length of the chain is larger than 1, this structure represents a protocol chain which consists of one or more layered protocols on top of a base protocol. The corresponding Catalog Entry IDs are in the ProtocolChain.ChainEntries array starting with the layered protocol at the top (the zeroth element in the ProtocolChain.ChainEntries array) and ending with the base protocol. Refer to Windows Sockets 2 Service Provider Interface for more information on protocol chains.

Requirements

Header: Declared in winsock2.h.

Library: Use ws2_32.lib.