Navigation
API > API/Runtime > API/Runtime/Sockets
Represents an internet address. All data is in network byte order
| Name | FInternetAddr |
| Type | class |
| Header File | /Engine/Source/Runtime/Sockets/Public/IPAddress.h |
| Include Path | #include "IPAddress.h" |
Syntax
class FInternetAddr
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FInternetAddr() |
Hidden on purpose | IPAddress.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FInternetAddr() |
IPAddress.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedRef< FInternetAddr > Clone() |
Creates a new structure with the same data as this structure | IPAddress.h | |
virtual bool CompareEndpoints
(
const FInternetAddr& InAddr |
Compares FInternetAddrs together, comparing the logical net addresses (endpoints) of the data stored, rather than doing a memory comparison like the equality operator does. | IPAddress.h | |
virtual void DumpAddrData() |
IPAddress.h | ||
void GetIp
(
uint32& OutAddr |
Copies the network byte order ip address to a host byte order dword | IPAddress.h | |
virtual int32 GetPlatformPort() |
Get platform specific port data. | IPAddress.h | |
virtual void GetPort
(
int32& OutPort |
Copies the port number from this address and places it into a host byte order int | IPAddress.h | |
int32 GetPort () |
Returns the port number from this address in host byte order | IPAddress.h | |
virtual FName GetProtocolType() |
Returns the protocol type name of the address data currently stored in this struct | IPAddress.h | |
TArray< uint8 > GetRawIp() |
Gets the ip address in a raw array stored in network byte order. | IPAddress.h | |
uint32 GetTypeHash() |
Hash function for use with TMap's - exposed through FInternetAddrMapRef | IPAddress.h | |
virtual bool IsPortValid
(
int32 InPort |
Report whether the port is in a valid range for SetPort. | IPAddress.h | |
bool IsValid() |
Is this a well formed internet address | IPAddress.h | |
void SetAnyAddress() |
Sets the address to be any address | IPAddress.h | |
void SetBroadcastAddress() |
Sets the address to broadcast | IPAddress.h | |
void SetIp
(
uint32 InAddr |
Sets the ip address from a host byte order uint32 | IPAddress.h | |
void SetIp
(
const TCHAR* InAddr, |
Sets the ip address from a string ("A.B.C.D") | IPAddress.h | |
void SetLoopbackAddress() |
Sets the address to loopback | IPAddress.h | |
virtual void SetPlatformPort
(
int32 InPort |
Set Platform specific port data | IPAddress.h | |
void SetPort
(
int32 InPort |
Sets the port number from a host byte order int | IPAddress.h | |
void SetRawIp
(
const TArray< uint8 >& RawAddr |
Sets the ip address from a raw network byte order array. | IPAddress.h | |
FString ToString
(
bool bAppendPort |
Converts this internet ip address to string form | IPAddress.h |
Protected
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool operator==
(
const FInternetAddr& Other |
Compares two internet ip addresses for equality | IPAddress.h |