Implements an IPv4 address. 更多...
#include <IPv4Address.h>
Public 成员函数 | |
| FIPv4Address () | |
| Default constructor. | |
| FIPv4Address (uint32 InValue) | |
| Creates and initializes a new IPv4 address with the specified value. 更多... | |
| FIPv4Address (uint8 InA, uint8 InB, uint8 InC, uint8 InD) | |
| Creates and initializes a new IPv4 address with the specified components. 更多... | |
| bool | IsGlobalMulticast () const |
| Checks whether this IP address is a global multicast address. 更多... | |
| bool | IsLinkLocal () const |
| Checks whether this IP address is link local. 更多... | |
| bool | IsLinkLocalMulticast () const |
| Checks whether this IP address is a link local multicast address. 更多... | |
| bool | IsLoopbackAddress () const |
| Checks whether this IP address is a loopback address. 更多... | |
| bool | IsMulticastAddress () const |
| Checks whether this IP address is a multicast address. 更多... | |
| bool | IsOrganizationLocalMulticast () const |
| Checks whether this IP address is a organization local multicast address. 更多... | |
| bool | IsSessionFrontendMulticast () const |
| Checks whether this IP address is the multicast address we use for the Session Frontend Which is 230.0.0.1 更多... | |
| bool | IsSiteLocalAddress () const |
| Checks whether this IP address is a site local address. 更多... | |
| bool | IsSiteLocalMulticast () const |
| Checks whether this IP address is a site local multicast address. 更多... | |
| bool | operator!= (const FIPv4Address &Other) const |
| Compares this IPv4 address with the given address for inequality. 更多... | |
| FIPv4Address | operator& (const FIPv4SubnetMask &SubnetMask) const |
| AND operator for masking IP addresses with a subnet mask. 更多... | |
| bool | operator== (const FIPv4Address &Other) const |
| Compares this IPv4 address with the given address for equality. 更多... | |
| FIPv4Address | operator| (const FIPv4SubnetMask &SubnetMask) const |
| OR operator for masking IP addresses with a subnet mask. 更多... | |
| NETWORKING_API FString | ToString () const |
| Gets the string representation for this address. 更多... | |
| FText | ToText () const |
| Gets the display text representation. 更多... | |
静态 Public 成员函数 | |
| static NETWORKING_API bool | Parse (const FString &AddressString, FIPv4Address &OutAddress) |
| Converts a string to an IPv4 address. 更多... | |
静态 Public 属性 | |
| static NETWORKING_API const FIPv4Address | Any |
| Defines the wild card address, which is 0.0.0.0 | |
| static NETWORKING_API const FIPv4Address | InternalLoopback |
| Defines the internal loopback address, which is 127.0.0.1 | |
| static NETWORKING_API const FIPv4Address | LanBroadcast |
| Defines the broadcast address for the 'zero network' (i.e. 更多... | |
友元 | |
| uint32 | GetTypeHash (const FIPv4Address &Address) |
| Gets the hash for specified IPv4 address. 更多... | |
| FArchive & | operator<< (FArchive &Ar, FIPv4Address &IpAddress) |
| Serializes the given IPv4 address from or into the specified archive. 更多... | |
Implements an IPv4 address.
|
inline |
Creates and initializes a new IPv4 address with the specified components.
The created IP address has the value A.B.C.D.
| InA | The first component. |
| InB | The second component. |
| InC | The third component. |
| InD | The fourth component. |
|
inline |
Creates and initializes a new IPv4 address with the specified value.
| InValue | The address value (in host byte order). |
|
inline |
Checks whether this IP address is a global multicast address.
Global multicast addresses are in the range 224.0.1.0 to 238.255.255.255.
|
inline |
Checks whether this IP address is link local.
Link local addresses are in the range 169.254.0.0/16
|
inline |
Checks whether this IP address is a link local multicast address.
Link local multicast addresses have the form 224.0.0.x.
|
inline |
Checks whether this IP address is a loopback address.
Loopback addresses have the form 127.x.x.x
|
inline |
Checks whether this IP address is a multicast address.
Multicast addresses are in the range 224.0.0.0 to 239.255.255.255.
|
inline |
Checks whether this IP address is a organization local multicast address.
Organization local multicast addresses are in the range 239.192.x.x to 239.195.x.x.
|
inline |
Checks whether this IP address is the multicast address we use for the Session Frontend Which is 230.0.0.1
|
inline |
Checks whether this IP address is a site local address.
Site local addresses have one of the following forms: 10.x.x.x 172.16.x.x 192.168.x.x
|
inline |
Checks whether this IP address is a site local multicast address.
Site local multicast addresses have the form 239.255.0.x.
|
inline |
Compares this IPv4 address with the given address for inequality.
| Other | The address to compare with. |
|
inline |
AND operator for masking IP addresses with a subnet mask.
| SubnetMask | The subnet mask. |
|
inline |
Compares this IPv4 address with the given address for equality.
| Other | The address to compare with. |
|
inline |
OR operator for masking IP addresses with a subnet mask.
| SubnetMask | The subnet mask. |
|
static |
Converts a string to an IPv4 address.
| AddressString | The string to convert. |
| OutAddress | Will contain the parsed address. |
| NETWORKING_API FString FIPv4Address::ToString | ( | ) | const |
|
inline |
|
friend |
Gets the hash for specified IPv4 address.
| Address | The address to get the hash for. |
|
friend |
Serializes the given IPv4 address from or into the specified archive.
| Ar | The archive to serialize from or into. |
| IpAddress | The address to serialize. |
|
static |
Defines the broadcast address for the 'zero network' (i.e.
LAN), which is 255.255.255.255.