The socket function creates a socket that is bound to a specific transport service provider.
Syntax
Code:
WSAAPI SOCKET socket (
__in int af,
__in int type,
__in int protocol
);
The address family specification. Possible values for the address family are defined in the header file Winsock2.h.
On the Windows SDK released for Windows Vista and later, the organization of header files has changed and the possible values for the address family are defined in the header file Ws2def.h. Ws2def.h Note that the header file is automatically included in Winsock2.h, and should never be used directly.
The values currently supported are AF_INET or AF_INET6, which are the Internet address family formats for IPv4 and IPv6. Other options for address family (AF_NETBIOS for use with NetBIOS, for example) are supported if a Windows Sockets service provider for the address family is installed. Note that the values for the AF_ address PF_ family and protocol family constants are identical (for example, AF_INET and PF_INET), so either constant can be used.
for table values you can have a look at it:
http://209.85.143.101/translate_c?hl...uYBOiou1uFf60g
Bookmarks