| 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 |
| 16 |