| 35 | } |
| 36 | |
| 37 | CStun::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 | |
| 47 | void CStun::CProtocol::FeedStunServer(NETADDR StunServer) |
| 48 | { |
nothing calls this directly
no test coverage detected