Navigation
API > API/Runtime > API/Runtime/Networking > API/Runtime/Networking/Interfaces > API/Runtime/Networking/Interfaces/IPv4
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
| Type | Name | Description | |
|---|---|---|---|
| FIPv4Address | Address | Holds the subnet's address. | |
| FIPv4SubnetMask | Mask | Holds the subnet's mask. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FIPv4Subnet () |
Default constructor. | ||
FIPv4Subnet
(
const FIPv4Address& InAddress, |
Creates and initializes a new IPv4 subnet with the specified address and mask. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FIPv4Address | Get the broadcast address for this subnet. | ||
| bool | ContainsAddress
(
const FIPv4Address& TestAddress |
Checks whether the subnet contains the specified IP address. | |
| bool | Parse
(
const FString& SubnetString, |
Converts a string to an IPv4 subnet. | |
| FString | ToString () |
Converts this IP subnet to its string representation. | |
| FText | ToText () |
Gets the display text representation. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FIPv4Subnet& Other |
Compares this IPv4 subnet descriptor with the given subnet for inequality. | |
| bool | operator==
(
const FIPv4Subnet& Other |
Compares this IPv4 subnet descriptor with the given subnet for equality. |