DDraceNetwork Docs
stun.h
Go to the documentation of this file.
1#ifndef ENGINE_SHARED_STUN_H
2#define ENGINE_SHARED_STUN_H
3#include <cstddef>
4
5struct NETADDR;
6
8{
9public:
10 unsigned char m_aSecret[12];
11};
12
13size_t StunMessagePrepare(unsigned char *pBuffer, size_t BufferSize, CStunData *pData);
14bool StunMessageParse(const unsigned char *pMessage, size_t MessageSize, const CStunData *pData, bool *pSuccess, NETADDR *pAddr);
15#endif // ENGINE_SHARED_STUN_H
Definition: stun.h:8
unsigned char m_aSecret[12]
Definition: stun.h:10
Definition: types.h:67
bool StunMessageParse(const unsigned char *pMessage, size_t MessageSize, const CStunData *pData, bool *pSuccess, NETADDR *pAddr)
Definition: stun.cpp:35
size_t StunMessagePrepare(unsigned char *pBuffer, size_t BufferSize, CStunData *pData)
Definition: stun.cpp:19