Stun Server  Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
stunutils.cpp File Reference
#include "commonincludes.hpp"
#include "stuntypes.h"
#include "socketaddress.h"
#include "buffer.h"
#include "datastream.h"
Include dependency graph for stunutils.cpp:

Go to the source code of this file.

Functions

bool IsTransactionIdValid (StunTransactionId &transid)
 
HRESULT GetMappedAddress (uint8_t *pData, size_t size, CSocketAddress *pAddr)
 
HRESULT GetXorMappedAddress (uint8_t *pData, size_t size, StunTransactionId &transid, CSocketAddress *pAddr)
 

Function Documentation

HRESULT GetMappedAddress ( uint8_t *  pData,
size_t  size,
CSocketAddress pAddr 
)

Definition at line 33 of file stunutils.cpp.

HRESULT GetXorMappedAddress ( uint8_t *  pData,
size_t  size,
StunTransactionId transid,
CSocketAddress pAddr 
)

Definition at line 73 of file stunutils.cpp.

bool IsTransactionIdValid ( StunTransactionId transid)

Definition at line 26 of file stunutils.cpp.