MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / IpAndPortToString

Function IpAndPortToString

src/vrcore/strtools_public.cpp:678–682  ·  view source on GitHub ↗

Returns an IP address and port as a string */

Source from the content-addressed store, hash-verified

676
677/** Returns an IP address and port as a string */
678std::string IpAndPortToString( uint32_t unIpH, uint16_t usPortH )
679{
680 uint8_t *ip = ( uint8_t * )&unIpH;
681 return Format( "%d.%d.%d.%d:%u", ip[ 3 ], ip[ 2 ], ip[ 1 ], ip[ 0 ], usPortH );
682}
683
684

Callers

nothing calls this directly

Calls 1

FormatFunction · 0.85

Tested by

no test coverage detected