Home
last modified time | relevance | path

Searched refs:StunMessage (Results 1 – 24 of 24) sorted by relevance

/external/chromium_org/third_party/libjingle/source/talk/p2p/base/
Dstunrequest_unittest.cc59 void OnResponse(StunMessage* res) { in OnResponse()
63 void OnErrorResponse(StunMessage* res) { in OnErrorResponse()
72 static StunMessage* CreateStunMessage(StunMessageType type, in CreateStunMessage()
73 StunMessage* req) { in CreateStunMessage()
74 StunMessage* msg = new StunMessage(); in CreateStunMessage()
94 StunMessage* response_;
103 StunRequestThunker(StunMessage* msg, StunRequestTest* test) in StunRequestThunker()
107 virtual void OnResponse(StunMessage* res) { in OnResponse()
110 virtual void OnErrorResponse(StunMessage* res) { in OnErrorResponse()
117 virtual void Prepare(StunMessage* request) { in Prepare()
[all …]
Dstun_unittest.cc42 void CheckStunHeader(const StunMessage& msg, StunMessageType expected_type, in CheckStunHeader()
48 void CheckStunTransactionID(const StunMessage& msg, in CheckStunTransactionID()
77 size_t ReadStunMessageTestCase(StunMessage* msg, in ReadStunMessageTestCase()
530 StunMessage msg; in TEST_F()
542 StunMessage msg; in TEST_F()
543 StunMessage msg2; in TEST_F()
556 StunMessage msg; in TEST_F()
569 StunMessage msg; in TEST_F()
582 StunMessage msg; in TEST_F()
598 StunMessage msg; in TEST_F()
[all …]
Drelayserver_unittest.cc85 rtc::scoped_ptr<StunMessage> req( in Allocate()
93 rtc::scoped_ptr<StunMessage> req( in Bind()
100 void Send1(const StunMessage* msg) { in Send1()
105 void Send2(const StunMessage* msg) { in Send2()
121 StunMessage* Receive1() { in Receive1()
124 StunMessage* Receive2() { in Receive2()
133 StunMessage* Receive(rtc::TestClient* client) { in Receive()
134 StunMessage* msg = NULL; in Receive()
154 static StunMessage* CreateStunMessage(int type) { in CreateStunMessage()
155 StunMessage* msg = new RelayMessage(); in CreateStunMessage()
[all …]
Dstunrequest.h61 bool CheckResponse(StunMessage* msg);
83 StunRequest(StunMessage* request);
99 const StunMessage* msg() const;
110 virtual void Prepare(StunMessage* request) {} in Prepare()
113 virtual void OnResponse(StunMessage* response) {} in OnResponse()
114 virtual void OnErrorResponse(StunMessage* response) {} in OnErrorResponse()
125 StunMessage* msg_;
Dstunserver.h54 void OnBindingRequest(StunMessage* msg,
56 void OnAllocateRequest(StunMessage* msg,
58 void OnSharedSecretRequest(StunMessage* msg,
60 void OnSendRequest(StunMessage* msg,
65 const StunMessage& msg, const rtc::SocketAddress& addr,
69 void SendResponse(const StunMessage& msg,
Dstun.h148 class StunMessage {
150 StunMessage();
151 virtual ~StunMessage();
206 virtual StunMessage* CreateNew() const { return new StunMessage(); } in CreateNew()
236 virtual void SetOwner(StunMessage* owner) {} in SetOwner()
248 uint16 length, StunMessage* owner);
337 StunMessage* owner);
342 virtual void SetOwner(StunMessage* owner) { in SetOwner()
350 StunMessage* owner_;
537 class RelayMessage : public StunMessage {
[all …]
Dturnport.cc77 virtual void Prepare(StunMessage* request);
78 virtual void OnResponse(StunMessage* response);
79 virtual void OnErrorResponse(StunMessage* response);
84 void OnAuthChallenge(StunMessage* response, int code);
85 void OnTryAlternate(StunMessage* response, int code);
86 void OnUnknownAttribute(StunMessage* response);
94 virtual void Prepare(StunMessage* request);
95 virtual void OnResponse(StunMessage* response);
96 virtual void OnErrorResponse(StunMessage* response);
108 virtual void Prepare(StunMessage* request);
[all …]
Dstunserver_unittest.cc58 void Send(const StunMessage& msg) { in Send()
66 StunMessage* Receive() { in Receive()
67 StunMessage* msg = NULL; in Receive()
71 msg = new StunMessage(); in Receive()
90 StunMessage req; in TEST_F()
96 StunMessage* msg = Receive(); in TEST_F()
124 StunMessage* msg = Receive(); in TEST_F()
Dstunserver.cc49 StunMessage msg; in OnPacket()
69 StunMessage* msg, const rtc::SocketAddress& remote_addr) { in OnBindingRequest()
70 StunMessage response; in OnBindingRequest()
88 const StunMessage& msg, const rtc::SocketAddress& addr, in SendErrorResponse()
90 StunMessage err_msg; in SendErrorResponse()
103 const StunMessage& msg, const rtc::SocketAddress& addr) { in SendResponse()
Dstun.cc62 StunMessage::StunMessage() in StunMessage() function in cricket::StunMessage
70 StunMessage::~StunMessage() { in ~StunMessage()
76 bool StunMessage::IsLegacy() const { in IsLegacy()
83 bool StunMessage::SetTransactionID(const std::string& str) { in SetTransactionID()
91 bool StunMessage::AddAttribute(StunAttribute* attr) { in AddAttribute()
106 const StunAddressAttribute* StunMessage::GetAddress(int type) const { in GetAddress()
123 const StunUInt32Attribute* StunMessage::GetUInt32(int type) const { in GetUInt32()
127 const StunUInt64Attribute* StunMessage::GetUInt64(int type) const { in GetUInt64()
131 const StunByteStringAttribute* StunMessage::GetByteString(int type) const { in GetByteString()
135 const StunErrorCodeAttribute* StunMessage::GetErrorCode() const { in GetErrorCode()
[all …]
Dturnserver.h50 class StunMessage; variable
148 void HandleBindingRequest(Connection* conn, const StunMessage* msg);
152 bool GetKey(const StunMessage* msg, std::string* key);
153 bool CheckAuthorization(Connection* conn, const StunMessage* msg,
163 void SendErrorResponse(Connection* conn, const StunMessage* req,
167 const StunMessage* req,
172 const StunMessage* req,
175 void SendStun(Connection* conn, StunMessage* msg);
Dstunrequest.cc88 bool StunRequestManager::CheckResponse(StunMessage* msg) { in CheckResponse()
126 rtc::scoped_ptr<StunMessage> response(iter->second->msg_->CreateNew()); in CheckResponse()
135 msg_(new StunMessage()), tstamp_(0) { in StunRequest()
140 StunRequest::StunRequest(StunMessage* request) in StunRequest()
168 const StunMessage* StunRequest::msg() const { in msg()
Drelayserver.h120 std::string* username, StunMessage* msg);
127 const StunMessage& msg);
128 void HandleStunSend(RelayServerConnection* int_conn, const StunMessage& msg);
171 void SendStun(const StunMessage& msg);
172 void SendStunError(const StunMessage& request, int code, const char* desc);
Dportinterface.h44 class StunMessage; variable
114 virtual void SendBindingResponse(StunMessage* request,
117 StunMessage* request, const rtc::SocketAddress& addr,
Dport.h252 virtual void SendBindingResponse(StunMessage* request,
255 StunMessage* request, const rtc::SocketAddress& addr,
284 bool ParseStunUsername(const StunMessage* stun_msg,
540 StunMessage* response);
542 StunMessage* response);
583 StunMessage* response);
Dturnserver.cc186 static bool InitResponse(const StunMessage* req, StunMessage* resp) { in InitResponse()
195 static bool InitErrorResponse(const StunMessage* req, int code, in InitErrorResponse()
196 const std::string& reason, StunMessage* resp) { in InitErrorResponse()
368 bool TurnServer::GetKey(const StunMessage* msg, std::string* key) { in GetKey()
380 const StunMessage* msg, in CheckAuthorization()
417 if (key.empty() || !StunMessage::ValidateMessageIntegrity(data, size, key)) { in CheckAuthorization()
440 const StunMessage* req) { in HandleBindingRequest()
441 StunMessage response; in HandleBindingRequest()
542 const StunMessage* req, in SendErrorResponse()
552 Connection* conn, const StunMessage* msg, in SendErrorResponseWithRealmAndNonce()
[all …]
Dportproxy.h80 virtual void SendBindingResponse(StunMessage* request,
83 StunMessage* request, const rtc::SocketAddress& addr,
Drelayport.cc67 bool CheckResponse(StunMessage* msg);
178 virtual void Prepare(StunMessage* request);
182 virtual void OnResponse(StunMessage* response);
183 virtual void OnErrorResponse(StunMessage* response);
427 bool RelayConnection::CheckResponse(StunMessage* msg) { in CheckResponse()
780 void AllocateRequest::Prepare(StunMessage* request) { in Prepare()
799 void AllocateRequest::OnResponse(StunMessage* response) { in OnResponse()
816 void AllocateRequest::OnErrorResponse(StunMessage* response) { in OnErrorResponse()
Dport.cc374 if (IsStandardIce() && !StunMessage::ValidateFingerprint(data, size)) { in GetStunMessage()
482 bool Port::ParseStunUsername(const StunMessage* stun_msg, in ParseStunUsername()
599 void Port::SendBindingResponse(StunMessage* request, in SendBindingResponse()
613 StunMessage response; in SendBindingResponse()
662 void Port::SendBindingErrorResponse(StunMessage* request, in SendBindingErrorResponse()
668 StunMessage response; in SendBindingErrorResponse()
778 virtual void Prepare(StunMessage* request) { in Prepare()
834 virtual void OnResponse(StunMessage* response) { in OnResponse()
838 virtual void OnErrorResponse(StunMessage* response) { in OnErrorResponse()
1236 StunMessage* response) { in OnConnectionRequestResponse()
[all …]
Drelayserver.cc63 void SendStun(const StunMessage& msg, in SendStun()
72 void SendStunError(const StunMessage& msg, rtc::AsyncPacketSocket* socket, in SendStunError()
315 StunMessage* msg) { in HandleStun()
429 RelayServerConnection* int_conn, const StunMessage& request) { in HandleStunAllocate()
468 RelayServerConnection* int_conn, const StunMessage& request) { in HandleStunSend()
642 void RelayServerConnection::SendStun(const StunMessage& msg) { in SendStun()
650 const StunMessage& request, int error_code, const char* error_desc) { in SendStunError()
Dportproxy.cc129 StunMessage* request, const rtc::SocketAddress& addr) { in SendBindingResponse()
141 StunMessage* request, const rtc::SocketAddress& addr, in SendBindingErrorResponse()
Dstunport.cc58 virtual void Prepare(StunMessage* request) { in Prepare()
62 virtual void OnResponse(StunMessage* response) { in OnResponse()
84 virtual void OnErrorResponse(StunMessage* response) { in OnErrorResponse()
Dturnport.h188 void AddRequestAuthInfo(StunMessage* msg);
211 bool UpdateNonce(StunMessage* response);
Dport_unittest.cc112 static bool WriteStunMessage(const StunMessage* msg, ByteBuffer* buf) { in WriteStunMessage()
328 rtc::scoped_ptr<StunMessage> remote_request_;
1446 EXPECT_TRUE(StunMessage::ValidateMessageIntegrity( in TEST_F()
1456 EXPECT_TRUE(StunMessage::ValidateFingerprint( in TEST_F()
1478 EXPECT_TRUE(StunMessage::ValidateMessageIntegrity( in TEST_F()
1482 EXPECT_TRUE(StunMessage::ValidateFingerprint( in TEST_F()
1510 EXPECT_TRUE(StunMessage::ValidateMessageIntegrity( in TEST_F()
1514 EXPECT_TRUE(StunMessage::ValidateFingerprint( in TEST_F()