Function Microsoft::XboxStudios::Heimdall::EndpointFromString
Defined in File Endpoint.cpp
Function Documentation
-
tl::optional<Endpoint> Microsoft::XboxStudios::Heimdall::EndpointFromString(const std::string &networkString)
Constructs a new Endpoint object from a network string.
- Parameters
networkString – The network string. Examples of valid network string:
IPV6: 21DA:00D3:0000:2F3B:02AA:00FF:FE28:9C5A:8080
IPV4: 192.168.100.10:80
- Returns
The Endpoint. If an invalid network string is passed, a tl::none<Endpoint>() is returned.