76 readerstate = reader.
AddBytes(spMsg->GetData(), spMsg->GetSize());
127 ASSERT(spMsg->GetAllocatedSize() > 0);
153 bool fHasOtherAddress =
false;
175 if (fHasOtherAddress)
211 this->_fIsTest3 =
false;
217 if (_fIsTest3 ==
false)
247 ASSERT(spMsg->GetAllocatedSize() > 0);
260 if (_fIsTest3 ==
false)
330 _fIsTest3 = fSetAsTest3;
347 if (_fIsTest3 ==
false)
379 if (_fIsTest3 ==
false)
449 _fIsTest3 = fSetAsTest3;
bool fBehaviorTestSuccess
HRESULT AddRandomTransactionId(StunTransactionId *pTransId)
HRESULT ProcessResponse(CRefCountedBuffer &spMsg, CSocketAddress &addrRemote, CSocketAddress &addrLocal)
bool IsSameIP_and_Port(const CSocketAddress &other) const
void LogMsg(uint32_t level, const char *pszFormat,...)
HRESULT AddBindingRequestHeader()
void GetTransactionId(StunTransactionId *pTransId)
HRESULT StartBindingRequest(CStunMessageBuilder &builder)
virtual bool IsCompleted()
bool fFilteringTestSuccess
HRESULT GetMappedAddress(CSocketAddress *pAddress)
HRESULT ProcessResponse(CRefCountedBuffer &spMsg, CSocketAddress &addrRemote, CSocketAddress &addrLocal)
ReaderParseState AddBytes(const uint8_t *pData, uint32_t size)
HRESULT GetMessage(CRefCountedBuffer &spMsg, CSocketAddress *pAddrDest)
HRESULT GetOtherAddress(CSocketAddress *pAddress)
HRESULT AddTransactionId(const StunTransactionId &transid)
virtual void PreRunCheck()
HRESULT GetMessage(CRefCountedBuffer &spMsg, CSocketAddress *pAddrDest)
CSocketAddress addrMapped
StunClientLogicConfig * _pConfig
HRESULT ToStringBuffer(char *pszAddrBytes, size_t length) const
virtual HRESULT Init(StunClientLogicConfig *pConfig, StunClientResults *pResults)
bool IsTransactionIdValid(StunTransactionId &transid)
HRESULT AddChangeRequest(const StunChangeRequestAttribute &changeAttrib)
uint8_t id[STUN_TRANSACTION_ID_LENGTH]
CSocketAddress addrMappingAA
void RunAsTest3(bool fSetAsTest3)
void RunAsTest3(bool fSetAsTest3)
HRESULT GetMessage(CRefCountedBuffer &spMsg, CSocketAddress *pAddrDest)
boost::shared_ptr< CBuffer > CRefCountedBuffer
HRESULT BasicReaderValidation(CRefCountedBuffer &spMsg, CStunMessageReader &reader)
HRESULT ProcessResponse(CRefCountedBuffer &spMsg, CSocketAddress &addrRemote, CSocketAddress &addrLocal)
void Attach(CRefCountedBuffer &buffer, bool fForWriting)
bool IsIPAddressZero() const
CSocketAddress addrMappingAP
#define ChkIfA(expr, hrerror)
CDataStream & GetStream()
StunTransactionId _transid
HRESULT GetXorMappedAddress(CSocketAddress *pAddress)
StunClientResults * _pResults
CSocketAddress addrServer