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/IPv4SubnetMask.h |
| Include | #include "Interfaces/IPv4/IPv4SubnetMask.h" |
Syntax
struct FIPv4SubnetMask
Remarks
Implements an IPv4 subnet mask.
Variables
| Type | Name | Description | |
|---|---|---|---|
| union FIPv4SubnetMask | |||
| uint8 | A | ||
| uint8 | B | ||
| uint8 | C | ||
| uint8 | D | ||
| int32 | Value | The subnet mask value in host byte order. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor. | |||
FIPv4SubnetMask
(
uint32 InValue |
Creates and initializes a new IPv4 subnet mask with the specified value. | ||
FIPv4SubnetMask
(
uint8 InA, |
Creates and initializes a new IPv4 subnet mask with the specified components. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| EIPv4SubnetClasses::Type | GetClass () |
Gets the subnet class that this mask specifies. | |
| bool | Parse
(
const FString& MaskString, |
Converts a string to an IPv4 subnet mask. | |
| FString | ToString () |
Converts this IP address to its string representation. | |
| FText | ToText () |
Gets the display text representation. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FIPv4SubnetMask& Other |
Compares this subnet mask with the given address for inequality. | |
| FIPv4SubnetMask | operator~ () |
Returns an inverted subnet mask. | |
| bool | operator==
(
const FIPv4SubnetMask& Other |
Compares this subnet mask with the given mask for equality. |