글
PF_INET , AF_INET 차이점
프로토콜 형식을 표현 => PF_INET
주소 형식을 표현 => AF_INET
MSDN에 가보면
Note that the values for the AF_ address family and PF_ protocol family constants are identical (for example, AF_INET and PF_INET), so either constant can be used. 해석 identical : 아주 동일한! AF_ address family constants == PF_ protocol family constants ? TRUE!! |
SOCKET WSAAPI socket( _In_ int af, _In_ int type, _In_ int protocol );
af 인자를 잠시 살펴보면
Af | Meaning |
---|---|
| The address family is unspecified. |
| The Internet Protocol version 4 (IPv4) address family. |
| The IPX/SPX address family. This address family is only supported if the NWLink IPX/SPX NetBIOS Compatible Transport protocol is installed. This address family is not supported on Windows Vista and later. |
| The AppleTalk address family. This address family is only supported if the AppleTalk protocol is installed. This address family is not supported on Windows Vista and later. |
| The NetBIOS address family. This address family is only supported if the Windows Sockets provider for NetBIOS is installed. The Windows Sockets provider for NetBIOS is supported on 32-bit versions of Windows. This provider is installed by default on 32-bit versions of Windows. The Windows Sockets provider for NetBIOS is not supported on 64-bit versions of windows including Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003, or Windows XP. The Windows Sockets provider for NetBIOS only supports sockets where the type parameter is set to SOCK_DGRAM. The Windows Sockets provider for NetBIOS is not directly related to the NetBIOSprogramming interface. The NetBIOS programming interface is not supported on Windows Vista, Windows Server 2008, and later. |
| The Internet Protocol version 6 (IPv6) address family. |
| The Infrared Data Association (IrDA) address family. This address family is only supported if the computer has an infrared port and driver installed. |
| The Bluetooth address family. This address family is supported on Windows XP with SP2 or later if the computer has a Bluetooth adapter and driver installed. |
'프로그래밍 > Network' 카테고리의 다른 글
error LNK2019: unresolved external symbol __imp__socket@12 (0) | 2013.03.11 |
---|---|
[winsock2] Nagle 알고리즘 (0) | 2013.03.08 |
[WINAPI] Local IP 얻어오기 (0) | 2013.03.05 |
RECENT COMMENT