engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 静态 Public 属性 | 友元 | 所有成员列表
FIPv4Address结构体 参考

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.

构造及析构函数说明

◆ FIPv4Address() [1/2]

FIPv4Address::FIPv4Address ( uint8  InA,
uint8  InB,
uint8  InC,
uint8  InD 
)
inline

Creates and initializes a new IPv4 address with the specified components.

The created IP address has the value A.B.C.D.

参数
InAThe first component.
InBThe second component.
InCThe third component.
InDThe fourth component.

◆ FIPv4Address() [2/2]

FIPv4Address::FIPv4Address ( uint32  InValue)
inline

Creates and initializes a new IPv4 address with the specified value.

参数
InValueThe address value (in host byte order).

成员函数说明

◆ IsGlobalMulticast()

bool FIPv4Address::IsGlobalMulticast ( ) const
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.

返回
true if it is a global multicast address, false otherwise.
参见
IsLinkLocalMulticast, IsOrganizationLocalMulticast, IsSiteLocalMulticast

◆ IsLinkLocal()

bool FIPv4Address::IsLinkLocal ( ) const
inline

Checks whether this IP address is link local.

Link local addresses are in the range 169.254.0.0/16

返回
true if it is link local, false otherwise.

◆ IsLinkLocalMulticast()

bool FIPv4Address::IsLinkLocalMulticast ( ) const
inline

Checks whether this IP address is a link local multicast address.

Link local multicast addresses have the form 224.0.0.x.

返回
true if it is a link local multicast address, false otherwise.
参见
IsGlobalMulticast, IsOrganizationLocalMulticast, IsSiteLocalMulticast

◆ IsLoopbackAddress()

bool FIPv4Address::IsLoopbackAddress ( ) const
inline

Checks whether this IP address is a loopback address.

Loopback addresses have the form 127.x.x.x

返回
true if it is a loopback address, false otherwise.
参见
IsMulticastAddress

◆ IsMulticastAddress()

bool FIPv4Address::IsMulticastAddress ( ) const
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.

返回
true if it is a multicast address, false otherwise.
参见
IsLoopbackAddress

◆ IsOrganizationLocalMulticast()

bool FIPv4Address::IsOrganizationLocalMulticast ( ) const
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.

返回
true if it is a site local multicast address, false otherwise.
参见
IsGlobalMulticast, IsLinkLocalMulticast, IsSiteLocalMulticast

◆ IsSessionFrontendMulticast()

bool FIPv4Address::IsSessionFrontendMulticast ( ) const
inline

Checks whether this IP address is the multicast address we use for the Session Frontend Which is 230.0.0.1

返回
true if this address matches, false otherwise.

◆ IsSiteLocalAddress()

bool FIPv4Address::IsSiteLocalAddress ( ) const
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

返回
true if it is a site local address, false otherwise.

◆ IsSiteLocalMulticast()

bool FIPv4Address::IsSiteLocalMulticast ( ) const
inline

Checks whether this IP address is a site local multicast address.

Site local multicast addresses have the form 239.255.0.x.

返回
true if it is a site local multicast address, false otherwise.
参见
IsGlobalMulticast, IsLinkLocalMulticast, IsOrganizationLocalMulticast

◆ operator!=()

bool FIPv4Address::operator!= ( const FIPv4Address &  Other) const
inline

Compares this IPv4 address with the given address for inequality.

参数
OtherThe address to compare with.
返回
true if the addresses are not equal, false otherwise.

◆ operator&()

FIPv4Address FIPv4Address::operator& ( const FIPv4SubnetMask &  SubnetMask) const
inline

AND operator for masking IP addresses with a subnet mask.

参数
SubnetMaskThe subnet mask.
返回
The masked IP address.

◆ operator==()

bool FIPv4Address::operator== ( const FIPv4Address &  Other) const
inline

Compares this IPv4 address with the given address for equality.

参数
OtherThe address to compare with.
返回
true if the addresses are equal, false otherwise.

◆ operator|()

FIPv4Address FIPv4Address::operator| ( const FIPv4SubnetMask &  SubnetMask) const
inline

OR operator for masking IP addresses with a subnet mask.

参数
SubnetMaskThe subnet mask.
返回
The masked IP address.

◆ Parse()

static NETWORKING_API bool FIPv4Address::Parse ( const FString &  AddressString,
FIPv4Address &  OutAddress 
)
static

Converts a string to an IPv4 address.

参数
AddressStringThe string to convert.
OutAddressWill contain the parsed address.
返回
true if the string was converted successfully, false otherwise.
参见
ToString

◆ ToString()

NETWORKING_API FString FIPv4Address::ToString ( ) const

Gets the string representation for this address.

返回
String representation.
参见
Parse, ToText

◆ ToText()

FText FIPv4Address::ToText ( ) const
inline

Gets the display text representation.

返回
Text representation.
参见
ToString

友元及相关函数文档

◆ GetTypeHash

uint32 GetTypeHash ( const FIPv4Address &  Address)
friend

Gets the hash for specified IPv4 address.

参数
AddressThe address to get the hash for.
返回
Hash value.

◆ operator<<

FArchive & operator<< ( FArchive &  Ar,
FIPv4Address &  IpAddress 
)
friend

Serializes the given IPv4 address from or into the specified archive.

参数
ArThe archive to serialize from or into.
IpAddressThe address to serialize.
返回
The archive.

类成员变量说明

◆ LanBroadcast

NETWORKING_API const FIPv4Address FIPv4Address::LanBroadcast
static

Defines the broadcast address for the 'zero network' (i.e.

LAN), which is 255.255.255.255.


该结构体的文档由以下文件生成: