MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / Set

Method Set

modules/core/profile/internal/tracy/common/TracySocket.cpp:642–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640}
641
642void IpAddress::Set( const struct sockaddr& addr )
643{
644#if defined _WIN32 && ( !defined NTDDI_WIN10 || NTDDI_VERSION < NTDDI_WIN10 )
645 struct sockaddr_in tmp;
646 memcpy( &tmp, &addr, sizeof( tmp ) );
647 auto ai = &tmp;
648#else
649 auto ai = (const struct sockaddr_in*)&addr;
650#endif
651 inet_ntop( AF_INET, &ai->sin_addr, m_text, 17 );
652 m_number = ai->sin_addr.s_addr;
653}
654
655UdpListen::UdpListen()
656 : m_sock( -1 )

Callers 2

ReadMethod · 0.45
mainFunction · 0.45

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected