Stun Server
Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
|
#include <buffer.h>
Public Member Functions | |
CBuffer () | |
void | Reset () |
CBuffer (size_t nSize) | |
HRESULT | InitWithAllocation (size_t size) |
CBuffer (uint8_t *pByteArray, size_t nByteArraySize, bool fCopy) | |
HRESULT | InitWithAllocAndCopy (uint8_t *pByteArray, size_t nByteArraySize) |
HRESULT | InitNoAlloc (uint8_t *pByteArray, size_t nByteArraySize) |
size_t | GetSize () |
size_t | GetAllocatedSize () |
HRESULT | SetSize (size_t size) |
uint8_t * | GetData () |
bool | IsValid () |
Private Member Functions | |
CBuffer (const CBuffer &) | |
void | operator= (const CBuffer &other) |
Private Attributes | |
uint8_t * | _data |
size_t | _size |
size_t | _allocatedSize |
boost::scoped_array< uint8_t > | _spAllocation |
|
private |
CBuffer::CBuffer | ( | ) |
Definition at line 24 of file buffer.cpp.
CBuffer::CBuffer | ( | size_t | nSize | ) |
Definition at line 42 of file buffer.cpp.
CBuffer::CBuffer | ( | uint8_t * | pByteArray, |
size_t | nByteArraySize, | ||
bool | fCopy | ||
) |
Definition at line 110 of file buffer.cpp.
HRESULT CBuffer::InitNoAlloc | ( | uint8_t * | pByteArray, |
size_t | nByteArraySize | ||
) |
Definition at line 74 of file buffer.cpp.
HRESULT CBuffer::InitWithAllocAndCopy | ( | uint8_t * | pByteArray, |
size_t | nByteArraySize | ||
) |
Definition at line 89 of file buffer.cpp.
HRESULT CBuffer::InitWithAllocation | ( | size_t | size | ) |
Definition at line 48 of file buffer.cpp.
bool CBuffer::IsValid | ( | ) |
Definition at line 143 of file buffer.cpp.
|
private |
void CBuffer::Reset | ( | ) |
Definition at line 32 of file buffer.cpp.
HRESULT CBuffer::SetSize | ( | size_t | size | ) |
Definition at line 126 of file buffer.cpp.