engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | 所有成员列表
FInternetAddr类 参考abstract

Represents an internet address. 更多...

#include <IPAddress.h>

被 FInternetAddrDemo 继承.

Public 成员函数

virtual TSharedRef< FInternetAddr > Clone () const =0
 Creates a new structure with the same data as this structure 更多...
 
virtual bool CompareEndpoints (const FInternetAddr &InAddr) const
 Compares FInternetAddrs together, comparing the logical net addresses (endpoints) of the data stored, rather than doing a memory comparison like the equality operator does. 更多...
 
virtual void GetIp (uint32 &OutAddr) const =0
 Copies the network byte order ip address to a host byte order dword 更多...
 
virtual int32 GetPlatformPort () const
 Get platform specific port data.
 
virtual int32 GetPort () const =0
 Returns the port number from this address in host byte order
 
virtual void GetPort (int32 &OutPort) const
 Copies the port number from this address and places it into a host byte order int 更多...
 
virtual FName GetProtocolType () const
 Returns the protocol type name of the address data currently stored in this struct 更多...
 
virtual TArray< uint8 > GetRawIp () const =0
 Gets the ip address in a raw array stored in network byte order. 更多...
 
virtual uint32 GetTypeHash () const =0
 Hash function for use with TMap's - exposed through FInternetAddrMapRef 更多...
 
virtual bool IsValid () const =0
 Is this a well formed internet address 更多...
 
virtual bool operator== (const FInternetAddr &Other) const
 Compares two internet ip addresses for equality 更多...
 
virtual void SetAnyAddress ()=0
 Sets the address to be any address
 
virtual void SetBroadcastAddress ()=0
 Sets the address to broadcast
 
virtual void SetIp (const TCHAR *InAddr, bool &bIsValid)=0
 Sets the ip address from a string ("A.B.C.D") 更多...
 
virtual void SetIp (uint32 InAddr)=0
 Sets the ip address from a host byte order uint32 更多...
 
virtual void SetLoopbackAddress ()=0
 Sets the address to loopback
 
virtual void SetPlatformPort (int32 InPort)
 Set Platform specific port data
 
virtual void SetPort (int32 InPort)=0
 Sets the port number from a host byte order int 更多...
 
virtual void SetRawIp (const TArray< uint8 > &RawAddr)=0
 Sets the ip address from a raw network byte order array. 更多...
 
virtual FString ToString (bool bAppendPort) const =0
 Converts this internet ip address to string form 更多...
 

Protected 成员函数

 FInternetAddr ()
 Hidden on purpose
 

详细描述

Represents an internet address.

All data is in network byte order

成员函数说明

◆ Clone()

virtual TSharedRef< FInternetAddr > FInternetAddr::Clone ( ) const
pure virtual

Creates a new structure with the same data as this structure

返回
The new structure

◆ CompareEndpoints()

virtual bool FInternetAddr::CompareEndpoints ( const FInternetAddr &  InAddr) const
inlinevirtual

Compares FInternetAddrs together, comparing the logical net addresses (endpoints) of the data stored, rather than doing a memory comparison like the equality operator does.

If it is not explicitly implemented, this falls back to just doing the same behavior of the comparison operator.

@Param InAddr The address to compare with.

返回
true if the endpoint stored in this FInternetAddr is the same as the input.

◆ GetIp()

virtual void FInternetAddr::GetIp ( uint32 &  OutAddr) const
pure virtual

Copies the network byte order ip address to a host byte order dword

参数
OutAddrthe out param receiving the ip address

◆ GetPort()

virtual void FInternetAddr::GetPort ( int32 &  OutPort) const
inlinevirtual

Copies the port number from this address and places it into a host byte order int

参数
OutPortthe host byte order int that receives the port

◆ GetProtocolType()

virtual FName FInternetAddr::GetProtocolType ( ) const
inlinevirtual

Returns the protocol type name of the address data currently stored in this struct

返回
The type of the address. If it's not known or overridden in a derived class, the return is None.

◆ GetRawIp()

virtual TArray< uint8 > FInternetAddr::GetRawIp ( ) const
pure virtual

Gets the ip address in a raw array stored in network byte order.

返回
The raw address stored in an array

◆ GetTypeHash()

virtual uint32 FInternetAddr::GetTypeHash ( ) const
pure virtual

Hash function for use with TMap's - exposed through FInternetAddrMapRef

返回
The value to use for the hash

◆ IsValid()

virtual bool FInternetAddr::IsValid ( ) const
pure virtual

Is this a well formed internet address

返回
true if a valid IP, false otherwise

◆ operator==()

virtual bool FInternetAddr::operator== ( const FInternetAddr &  Other) const
inlinevirtual

Compares two internet ip addresses for equality

参数
Otherthe address to compare against

◆ SetIp() [1/2]

virtual void FInternetAddr::SetIp ( const TCHAR *  InAddr,
bool &  bIsValid 
)
pure virtual

Sets the ip address from a string ("A.B.C.D")

参数
InAddrthe string containing the new ip address to use

◆ SetIp() [2/2]

virtual void FInternetAddr::SetIp ( uint32  InAddr)
pure virtual

Sets the ip address from a host byte order uint32

参数
InAddrthe new address to use (must convert to network byte order)

◆ SetPort()

virtual void FInternetAddr::SetPort ( int32  InPort)
pure virtual

Sets the port number from a host byte order int

参数
InPortthe new port to use (must convert to network byte order)

◆ SetRawIp()

virtual void FInternetAddr::SetRawIp ( const TArray< uint8 > &  RawAddr)
pure virtual

Sets the ip address from a raw network byte order array.

参数
RawAddrthe new address to use (must be converted to network byte order)

◆ ToString()

virtual FString FInternetAddr::ToString ( bool  bAppendPort) const
pure virtual

Converts this internet ip address to string form

参数
bAppendPortwhether to append the port information or not

该类的文档由以下文件生成: