19 #ifndef STUN_MESSAGE_H 20 #define STUN_MESSAGE_H
StunTransactionId _transactionid
HRESULT AddUnknownAttributes(const uint16_t *arrAttributeIds, size_t count)
HRESULT AddPaddingAttribute(uint16_t paddingSize)
HRESULT AddStringAttribute(uint16_t attribType, const char *pstr)
HRESULT AddRandomTransactionId(StunTransactionId *pTransId)
HRESULT AddRealm(const char *pszRealm)
HRESULT AddXorMappedAddress(const CSocketAddress &addr)
HRESULT AddAttributeHeader(uint16_t attribType, uint16_t size)
HRESULT AddBindingRequestHeader()
HRESULT AddMappedAddressImpl(uint16_t attribute, const CSocketAddress &addr)
HRESULT AddMappedAddress(const CSocketAddress &addr)
void SetLegacyMode(bool fLegacyMode)
HRESULT AddAttribute(uint16_t attribType, const void *data, uint16_t size)
HRESULT AddHeader(StunMessageType msgType, StunMessageClass msgClass)
HRESULT AddTransactionId(const StunTransactionId &transid)
HRESULT AddBindingResponseHeader(bool fSuccess)
HRESULT AddResponseOriginAddress(const CSocketAddress &other)
HRESULT AddMessageIntegrityLongTerm(const char *pszUserName, const char *pszRealm, const char *pszPassword)
HRESULT AddFingerprintAttribute()
HRESULT AddNonce(const char *pszNonce)
HRESULT AddResponsePort(uint16_t port)
HRESULT GetResult(CRefCountedBuffer *pspBuffer)
HRESULT AddErrorCode(uint16_t errorNumber, const char *pszReason)
HRESULT AddMessageIntegrityShortTerm(const char *pszPassword)
HRESULT AddChangeRequest(const StunChangeRequestAttribute &changeAttrib)
boost::shared_ptr< CBuffer > CRefCountedBuffer
HRESULT AddMessageIntegrityImpl(uint8_t *key, size_t keysize)
CDataStream & GetStream()
HRESULT AddUserName(const char *pszUserName)
HRESULT AddOtherAddress(const CSocketAddress &other)