The AFPROTOCOLS structure supplies a list of protocols to which application programmers can constrain queries. The AFPROTOCOLS structure is used for query purposes only.
typedef struct _AFPROTOCOLS {
INT iAddressFamily;
INT iProtocol;
} AFPROTOCOLS, *PAFPROTOCOLS, *LPAFPROTOCOLS;
iAddressFamily
Address family to which the query is to be constrained.
iProtocol
Protocol to which the query is to be constrained.
The members of the AFPROTOCOLS structure are a functional pair, and only have meaning when used together, as protocol values have meaning only within the context of an address family.
Header: Declared in winsock2.h.
Library: Use ws2_32.lib.