MCPcopy Create free account
hub / github.com/ddnet/ddnet / CProtocol

Method CProtocol

src/engine/shared/network_stun.cpp:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37CStun::CProtocol::CProtocol(int Index, NETSOCKET Socket) :
38 m_Index(Index),
39 m_Socket(Socket)
40{
41 mem_zero(&m_StunServer, sizeof(NETADDR));
42 // Initialize `m_Stun` with random data.
43 unsigned char aBuf[32];
44 StunMessagePrepare(aBuf, sizeof(aBuf), &m_Stun);
45}
46
47void CStun::CProtocol::FeedStunServer(NETADDR StunServer)
48{

Callers

nothing calls this directly

Calls 2

mem_zeroFunction · 0.85
StunMessagePrepareFunction · 0.85

Tested by

no test coverage detected