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

Function IpToString

src/vrcore/strtools_public.cpp:671–675  ·  view source on GitHub ↗

Returns an IP address as a string */

Source from the content-addressed store, hash-verified

669
670/** Returns an IP address as a string */
671std::string IpToString( uint32_t unIpH )
672{
673 uint8_t *ip = ( uint8_t * )&unIpH;
674 return Format( "%d.%d.%d.%d", ip[ 3 ], ip[ 2 ], ip[ 1 ], ip[ 0 ] );
675}
676
677/** Returns an IP address and port as a string */
678std::string IpAndPortToString( uint32_t unIpH, uint16_t usPortH )

Callers

nothing calls this directly

Calls 1

FormatFunction · 0.85

Tested by

no test coverage detected