MCPcopy Create free account
hub / github.com/SFML/SFML / encodeHostname

Function encodeHostname

src/SFML/Network/Dns.cpp:418–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418std::string encodeHostname(const sf::String& hostname)
419{
420 // TODO: Support proper Punycode conversion if there is a need for it
421 // https://datatracker.ietf.org/doc/html/rfc3492
422 return hostname.toAnsiString();
423}
424
425sf::String decodeHostname(const std::string& hostname)
426{

Callers 5

resolveMethod · 0.85
queryNsMethod · 0.85
queryMxMethod · 0.85
querySrvMethod · 0.85
queryTxtMethod · 0.85

Calls 1

toAnsiStringMethod · 0.80

Tested by

no test coverage detected