Navigation
API > API/Runtime > API/Runtime/Networking
Implements a IPv4 subnet descriptor.
| Name | FIPv4Subnet |
| Type | struct |
| Header File | /Engine/Source/Runtime/Networking/Public/Interfaces/IPv4/IPv4Subnet.h |
| Include Path | #include "Interfaces/IPv4/IPv4Subnet.h" |
Syntax
struct FIPv4Subnet
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FIPv4Subnet () |
Default constructor. | Interfaces/IPv4/IPv4Subnet.h | |
FIPv4Subnet
(
const FIPv4Address& InAddress, |
Creates and initializes a new IPv4 subnet with the specified address and mask. | Interfaces/IPv4/IPv4Subnet.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Address | FIPv4Address | Holds the subnet's address. | Interfaces/IPv4/IPv4Subnet.h | |
| Mask | FIPv4SubnetMask | Holds the subnet's mask. | Interfaces/IPv4/IPv4Subnet.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FIPv4Address BroadcastAddress() |
Get the broadcast address for this subnet. | Interfaces/IPv4/IPv4Subnet.h | |
bool ContainsAddress
(
const FIPv4Address& TestAddress |
Checks whether the subnet contains the specified IP address. | Interfaces/IPv4/IPv4Subnet.h | |
FString ToString () |
Converts this IP subnet to its string representation. | Interfaces/IPv4/IPv4Subnet.h | |
| Gets the display text representation. | Interfaces/IPv4/IPv4Subnet.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool Parse
(
const FString& SubnetString, |
Converts a string to an IPv4 subnet. | Interfaces/IPv4/IPv4Subnet.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FIPv4Subnet& Other |
Compares this IPv4 subnet descriptor with the given subnet for inequality. | Interfaces/IPv4/IPv4Subnet.h | |
bool operator==
(
const FIPv4Subnet& Other |
Compares this IPv4 subnet descriptor with the given subnet for equality. | Interfaces/IPv4/IPv4Subnet.h |