FIPv4Address

Implements an IPv4 address.

Windows
MacOS
Linux

References

Module

Networking

Header

/Engine/Source/Runtime/Networking/Public/Interfaces/IPv4/IPv4Address.h

Include

#include "Interfaces/IPv4/IPv4Address.h"

Syntax

struct FIPv4Address

Remarks

Implements an IPv4 address.

Variables

Name Description

Public variable

union FIPv4Addr...

 

@5930

Public variable

uint8

 

A

Public variable

uint8

 

B

Public variable

uint8

 

C

Public variable

uint8

 

D

Public variable

uint32

 

Value

The IP address value in host byte order.

Constructors

Name Description

Public function

FIPv4Address()

Default constructor.

Public function

FIPv4Address

(
    uint32 InValue
)

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

Public function

FIPv4Address

(
    uint8 InA,
    uint8 InB,
    uint8 InC,
    uint8 InD
)

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

Functions

Name Description

Public function Const

bool

 

IsGlobalMulticast()

Checks whether this IP address is a global multicast address.

Public function Const

bool

 

IsLinkLocal()

Checks whether this IP address is link local.

Public function Const

bool

 

IsLinkLocalMulticast()

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

Public function Const

bool

 

IsLoopbackAddress()

Checks whether this IP address is a loopback address.

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

Public function Const

bool

 

IsMulticastAddress()

Checks whether this IP address is a multicast address.

Public function Const

bool

 

IsOrganizationLocalMulticast()

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

Public function Const

bool

 

IsSessionFrontendMulticast()

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

Public function Const

bool

 

IsSiteLocalAddress()

Checks whether this IP address is a site local address.

Public function Const

bool

 

IsSiteLocalMulticast()

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

Public function Static

bool

 

Parse

(
    const FString& AddressString,
    FIPv4Address& OutAddress
)

Converts a string to an IPv4 address.

Public function Const

FString

 

ToString()

Gets the string representation for this address.

Public function Const

FText

 

ToText()

Gets the display text representation.

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FIPv4Address& Other
)

Compares this IPv4 address with the given address for inequality.

Public function Const

FIPv4Address

 

operator&

(
    const FIPv4SubnetMask& SubnetMask
)

AND operator for masking IP addresses with a subnet mask.

Public function Const

FIPv4Address

 

operator|

(
    const FIPv4SubnetMask& SubnetMask
)

OR operator for masking IP addresses with a subnet mask.

Public function Const

bool

 

operator==

(
    const FIPv4Address& Other
)

Compares this IPv4 address with the given address for equality.

Constants

Name

Description

Any

Defines the wild card address, which is 0.0.0.0

InternalLoopback

Defines the internal loopback address, which is 127.0.0.1

LanBroadcast

Defines the broadcast address for the 'zero network' (i.e. LAN), which is 255.255.255.255.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss