Implements an endpoint for IPv4 networks. 更多...
#include <IPv4Endpoint.h>
Public 成员函数 | |
| FIPv4Endpoint () | |
| Default constructor. | |
| FIPv4Endpoint (const FIPv4Address &InAddress, uint16 InPort) | |
| Creates and initializes a new IPv4 endpoint with the specified NetID and port. 更多... | |
| FIPv4Endpoint (const TSharedPtr< FInternetAddr > &InternetAddr) | |
| Creates and initializes a new IPv4 endpoint from a given FInternetAddr object. 更多... | |
| bool | operator!= (const FIPv4Endpoint &Other) const |
| Compares this IPv4 address with the given endpoint for inequality. 更多... | |
| bool | operator== (const FIPv4Endpoint &Other) const |
| Compares this IPv4 endpoint with the given endpoint for equality. 更多... | |
| TSharedRef< FInternetAddr > | ToInternetAddr () const |
| Converts this endpoint to an FInternetAddr object. 更多... | |
| TSharedRef< FInternetAddr > | ToInternetAddrIPV4 () const |
| Converts this endpoint to an FInternetAddr object. 更多... | |
| NETWORKING_API FString | ToString () const |
| Gets a string representation for this endpoint. 更多... | |
| FText | ToText () const |
| Gets the display text representation. 更多... | |
静态 Public 成员函数 | |
| static NETWORKING_API void | Initialize () |
| Initializes the IP endpoint functionality. | |
| static NETWORKING_API bool | Parse (const FString &EndpointString, FIPv4Endpoint &OutEndpoint) |
| Converts a string to an IPv4 endpoint. 更多... | |
Public 属性 | |
| FIPv4Address | Address |
| Holds the endpoint's IP address. | |
| uint16 | Port |
| Holds the endpoint's port number. | |
静态 Public 属性 | |
| static NETWORKING_API const FIPv4Endpoint | Any |
| Defines the wild card endpoint, which is 0.0.0.0:0 | |
友元 | |
| uint32 | GetTypeHash (const FIPv4Endpoint &Endpoint) |
| Gets the hash for specified IPv4 endpoint. 更多... | |
| FArchive & | operator<< (FArchive &Ar, FIPv4Endpoint &Endpoint) |
| Serializes the given endpoint from or into the specified archive. 更多... | |
Implements an endpoint for IPv4 networks.
An endpoint consists of an IPv4 address and a port number.
|
inline |
Creates and initializes a new IPv4 endpoint with the specified NetID and port.
| InAddress | The endpoint's IP address. |
| InPort | The endpoint's port number. |
|
inline |
Creates and initializes a new IPv4 endpoint from a given FInternetAddr object.
Note: this constructor will be removed after the socket subsystem has been refactored.
| InternetAddr | The Internet address. |
|
inline |
Compares this IPv4 address with the given endpoint for inequality.
| Other | The endpoint to compare with. |
|
inline |
Compares this IPv4 endpoint with the given endpoint for equality.
| Other | The endpoint to compare with. |
|
static |
Converts a string to an IPv4 endpoint.
| EndpointString | The string to convert. |
| OutEndpoint | Will contain the parsed endpoint. |
|
inline |
Converts this endpoint to an FInternetAddr object.
Note: this method will be removed after the socket subsystem is refactored.
|
inline |
Converts this endpoint to an FInternetAddr object.
Note: this method will be removed after the socket subsystem is refactored.
| NETWORKING_API FString FIPv4Endpoint::ToString | ( | ) | const |
|
inline |
|
friend |
Gets the hash for specified IPv4 endpoint.
| Endpoint | The endpoint to get the hash for. |
|
friend |
Serializes the given endpoint from or into the specified archive.
| Ar | The archive to serialize from or into. |
| Endpoint | The endpoint to serialize. |