Navigation
API > API/Runtime > API/Runtime/Sockets > API/Runtime/Sockets/ISocketSubsystem
Description
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.
| Name | GetAddressFromString |
| Type | function |
| Header File | /Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h |
| Include Path | #include "SocketSubsystem.h" |
TSharedPtr< FInternetAddr > GetAddressFromString
(
const FString & InAddress
)
The FInternetAddr of the given string address. This will point to nullptr on failure.
Parameters
| Name | Remarks |
|---|---|
| InAddress | the address to serialize |