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
5
struct
NETADDR
;
6
7
class
CStunData
8
{
9
public
:
10
unsigned
char
m_aSecret
[12];
11
};
12
13
size_t
StunMessagePrepare
(
unsigned
char
*pBuffer,
size_t
BufferSize,
CStunData
*pData);
14
bool
StunMessageParse
(
const
unsigned
char
*pMessage,
size_t
MessageSize,
const
CStunData
*pData,
bool
*pSuccess,
NETADDR
*pAddr);
15
#endif
// ENGINE_SHARED_STUN_H
CStunData
Definition:
stun.h:8
CStunData::m_aSecret
unsigned char m_aSecret[12]
Definition:
stun.h:10
NETADDR
Definition:
types.h:67
StunMessageParse
bool StunMessageParse(const unsigned char *pMessage, size_t MessageSize, const CStunData *pData, bool *pSuccess, NETADDR *pAddr)
Definition:
stun.cpp:35
StunMessagePrepare
size_t StunMessagePrepare(unsigned char *pBuffer, size_t BufferSize, CStunData *pData)
Definition:
stun.cpp:19
src
engine
shared
stun.h
Generated by
1.9.4