mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
16 lines
404 B
C
16 lines
404 B
C
|
#ifndef ENGINE_SHARED_STUN_H
|
||
|
#define ENGINE_SHARED_STUN_H
|
||
|
#include <cstddef>
|
||
|
|
||
|
struct NETADDR;
|
||
|
|
||
|
class CStunData
|
||
|
{
|
||
|
public:
|
||
|
unsigned char m_aSecret[12];
|
||
|
};
|
||
|
|
||
|
size_t StunMessagePrepare(unsigned char *pBuffer, size_t BufferSize, CStunData *pData);
|
||
|
bool StunMessageParse(const unsigned char *pMessage, size_t MessageSize, const CStunData *pData, bool *pSuccess, NETADDR *pAddr);
|
||
|
#endif // ENGINE_SHARED_STUN_H
|