mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 10:38:20 +00:00
ec45a7338a
Implemented according to RFC 5389.
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
|