Specifies the Internet Protocol (IP) versions that the SocketWrench class supports.
The SocketWrench class uses the AddressType enumeration to specify which version of the Internet Protocol will be used when a socket is created. The default protocol used by the class when establishing a connection is addressIpv4.
| Member Name | Description |
|---|---|
| addressUnknown | The version of the Internet Protocol is not specified. When a connection is established, the most appropriate version of the protocol will be used with preference given to IPv4 connections whenever possible. |
| addressIpv4 | Internet Protocol version 4 will be used when establishing connections. It is recommended that most applications use this version of the protocol. IPv4 addresses are 32 bits in length and are specified as four integer values separated by periods. An example of an IPv4 address is 192.168.0.121 |
| addressIpv6 | Internet Protocol version 6 will be used when establishing connections. IPv6 addresses are 128 bits in length are and specified as a series of hexadecimal values separated by colons. An example of an IPv6 address is fd7c:2f6a:4f4f:ba34::a32 |
Namespace: SocketTools
Assembly: SocketTools.SocketWrench (in SocketTools.SocketWrench.dll)
SocketTools Namespace | AddressFamily Property (SocketTools.SocketWrench)