MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / BConvertMappedToIPv4

Method BConvertMappedToIPv4

src/tier1/netadr.cpp:381–387  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: For an "m_IPv4Bytes address mapped into ipv6 space", this will internally convert it to a plain m_IPv4Bytes address. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

379// convert it to a plain m_IPv4Bytes address.
380//-----------------------------------------------------------------------------
381bool CIPAddress::BConvertMappedToIPv4()
382{
383 if ( !IsMappedIPv4() )
384 return false;
385 SetIPv4( m_rgubIPv6[12], m_rgubIPv6[13], m_rgubIPv6[14], m_rgubIPv6[15] );
386 return true;
387}
388
389//-----------------------------------------------------------------------------
390// Purpose: For an m_IPv4Bytes address, this will internally convert it into a mapped

Callers 4

DrainSocketFunction · 0.80
IsReservedAdrMethod · 0.80
IsLoopbackMethod · 0.80
IsBroadcastMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected