Choose your operating system:
Windows
macOS
Linux
| ISocketSubsystem::GetAddressFromString()
|
Module |
|
Header |
/Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h |
Include |
#include "SocketSubsystem.h" |
TSharedPtr< FInternetAddr > GetAddressFromString
(
const FString & InAddress
)
Serializes a string that only contains an address.
This is a what you see is what you get, there is no DNS resolution of the input string, so only use this if you know you already have a valid address and will not need to convert. Otherwise, feed the address to GetAddressInfo for guaranteed results.
The FInternetAddr of the given string address. This will point to nullptr on failure.
Parameter |
Description |
---|---|
InAddress |
the address to serialize |