FIPv4Subnet

Implements a IPv4 subnet descriptor.

Windows
MacOS
Linux

References

Module

Networking

Header

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

Include

#include "Interfaces/IPv4/IPv4Subnet.h"

Syntax

struct FIPv4Subnet

Remarks

Implements a IPv4 subnet descriptor.

Variables

Name Description

Public variable

FIPv4Address

 

Address

Holds the subnet's address.

Public variable

FIPv4SubnetMask

 

Mask

Holds the subnet's mask.

Constructors

Name Description

Public function

FIPv4Subnet()

Default constructor.

Public function

FIPv4Subnet

(
    const FIPv4Address& InAddress,
    const FIPv4SubnetMask& InMask
)

Creates and initializes a new IPv4 subnet with the specified address and mask.

Functions

Name Description

Public function Const

FIPv4Address

 

BroadcastAddress()

Get the broadcast address for this subnet.

Public function

bool

 

ContainsAddress

(
    const FIPv4Address& TestAddress
)

Checks whether the subnet contains the specified IP address.

Public function Static

bool

 

Parse

(
    const FString& SubnetString,
    FIPv4Subnet& OutSubnet
)

Converts a string to an IPv4 subnet.

Public function Const

FString

 

ToString()

Converts this IP subnet to its string representation.

Public function Const

FText

 

ToText()

Gets the display text representation.

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FIPv4Subnet& Other
)

Compares this IPv4 subnet descriptor with the given subnet for inequality.

Public function Const

bool

 

operator==

(
    const FIPv4Subnet& Other
)

Compares this IPv4 subnet descriptor with the given subnet for equality.

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