UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FInternetAddrDemo Class Reference

#include <ReplayTypes.h>

+ Inheritance diagram for FInternetAddrDemo:

Public Member Functions

 FInternetAddrDemo ()
 
virtual TArray< uint8GetRawIp () const override
 
virtual void SetRawIp (const TArray< uint8 > &RawAddr) override
 
void SetIp (uint32 InAddr) override
 
void SetIp (const TCHAR *InAddr, bool &bIsValid) override
 
void GetIp (uint32 &OutAddr) const override
 
void SetPort (int32 InPort) override
 
void GetPort (int32 &OutPort) const override
 
int32 GetPort () const override
 
void SetAnyAddress () override
 
void SetBroadcastAddress () override
 
void SetLoopbackAddress () override
 
FString ToString (bool bAppendPort) const override
 
virtual bool operator== (const FInternetAddr &Other) const override
 
bool operator!= (const FInternetAddrDemo &Other) const
 
virtual uint32 GetTypeHash () const override
 
uint32 GetConstTypeHash () const
 
virtual bool IsValid () const override
 
virtual TSharedRef< FInternetAddrClone () const override
 
- Public Member Functions inherited from FInternetAddr
virtual ~FInternetAddr ()
 
virtual bool CompareEndpoints (const FInternetAddr &InAddr) const
 
virtual bool IsPortValid (int32 InPort) const
 
virtual void SetPlatformPort (int32 InPort)
 
virtual int32 GetPlatformPort () const
 
virtual FName GetProtocolType () const
 
virtual SOCKETS_API void DumpAddrData () const
 

Static Public Attributes

static TSharedPtr< FInternetAddrDemoInternetAddr = MakeShareable(new FInternetAddrDemo)
 

Friends

uint32 GetTypeHash (const FInternetAddrDemo &A)
 

Additional Inherited Members

- Protected Member Functions inherited from FInternetAddr
 FInternetAddr ()
 

Constructor & Destructor Documentation

◆ FInternetAddrDemo()

FInternetAddrDemo::FInternetAddrDemo ( )
inline

Member Function Documentation

◆ Clone()

virtual TSharedRef< FInternetAddr > FInternetAddrDemo::Clone ( ) const
inlineoverridevirtual

Creates a new structure with the same data as this structure

Returns
The new structure

Implements FInternetAddr.

◆ GetConstTypeHash()

uint32 FInternetAddrDemo::GetConstTypeHash ( ) const
inline

◆ GetIp()

void FInternetAddrDemo::GetIp ( uint32 OutAddr) const
inlineoverridevirtual

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

Parameters
OutAddrthe out param receiving the ip address

Implements FInternetAddr.

◆ GetPort() [1/2]

int32 FInternetAddrDemo::GetPort ( ) const
inlineoverridevirtual

Returns the port number from this address in host byte order

Implements FInternetAddr.

◆ GetPort() [2/2]

void FInternetAddrDemo::GetPort ( int32 OutPort) const
inlineoverridevirtual

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

Parameters
OutPortthe host byte order int that receives the port

Reimplemented from FInternetAddr.

◆ GetRawIp()

virtual TArray< uint8 > FInternetAddrDemo::GetRawIp ( ) const
inlineoverridevirtual

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

Returns
The raw address stored in an array

Implements FInternetAddr.

◆ GetTypeHash()

virtual uint32 FInternetAddrDemo::GetTypeHash ( ) const
inlineoverridevirtual

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

Returns
The value to use for the hash

Implements FInternetAddr.

◆ IsValid()

virtual bool FInternetAddrDemo::IsValid ( ) const
inlineoverridevirtual

Is this a well formed internet address

Returns
true if a valid IP, false otherwise

Implements FInternetAddr.

◆ operator!=()

bool FInternetAddrDemo::operator!= ( const FInternetAddrDemo Other) const
inline

◆ operator==()

virtual bool FInternetAddrDemo::operator== ( const FInternetAddr Other) const
inlineoverridevirtual

Compares two internet ip addresses for equality

Parameters
Otherthe address to compare against

Reimplemented from FInternetAddr.

◆ SetAnyAddress()

void FInternetAddrDemo::SetAnyAddress ( )
inlineoverridevirtual

Sets the address to be any address

Implements FInternetAddr.

◆ SetBroadcastAddress()

void FInternetAddrDemo::SetBroadcastAddress ( )
inlineoverridevirtual

Sets the address to broadcast

Implements FInternetAddr.

◆ SetIp() [1/2]

void FInternetAddrDemo::SetIp ( const TCHAR InAddr,
bool bIsValid 
)
inlineoverridevirtual

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

Parameters
InAddrthe string containing the new ip address to use

Implements FInternetAddr.

◆ SetIp() [2/2]

void FInternetAddrDemo::SetIp ( uint32  InAddr)
inlineoverridevirtual

Sets the ip address from a host byte order uint32

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

Implements FInternetAddr.

◆ SetLoopbackAddress()

void FInternetAddrDemo::SetLoopbackAddress ( )
inlineoverridevirtual

Sets the address to loopback

Implements FInternetAddr.

◆ SetPort()

void FInternetAddrDemo::SetPort ( int32  InPort)
inlineoverridevirtual

Sets the port number from a host byte order int

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

Implements FInternetAddr.

◆ SetRawIp()

virtual void FInternetAddrDemo::SetRawIp ( const TArray< uint8 > &  RawAddr)
inlineoverridevirtual

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

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

Implements FInternetAddr.

◆ ToString()

FString FInternetAddrDemo::ToString ( bool  bAppendPort) const
inlineoverridevirtual

Converts this internet ip address to string form

Parameters
bAppendPortwhether to append the port information or not

Implements FInternetAddr.

Friends And Related Symbol Documentation

◆ GetTypeHash

uint32 GetTypeHash ( const FInternetAddrDemo A)
friend

Member Data Documentation

◆ DemoInternetAddr

TSharedPtr< FInternetAddr > FInternetAddrDemo::DemoInternetAddr = MakeShareable(new FInternetAddrDemo)
static

The documentation for this class was generated from the following files: