Home
last modified time | relevance | path

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

12

/external/webrtc/webrtc/p2p/base/
Dstunrequest_unittest.cc34 void OnResponse(StunMessage* res) { in OnResponse()
38 void OnErrorResponse(StunMessage* res) { in OnErrorResponse()
47 static StunMessage* CreateStunMessage(StunMessageType type, in CreateStunMessage()
48 StunMessage* req) { in CreateStunMessage()
49 StunMessage* msg = new StunMessage(); in CreateStunMessage()
69 StunMessage* response_;
78 StunRequestThunker(StunMessage* msg, StunRequestTest* test) in StunRequestThunker()
82 virtual void OnResponse(StunMessage* res) { in OnResponse()
85 virtual void OnErrorResponse(StunMessage* res) { in OnErrorResponse()
92 virtual void Prepare(StunMessage* request) { in Prepare()
[all …]
Dstun_unittest.cc26 void CheckStunHeader(const StunMessage& msg, StunMessageType expected_type, in CheckStunHeader()
32 void CheckStunTransactionID(const StunMessage& msg, in CheckStunTransactionID()
61 size_t ReadStunMessageTestCase(StunMessage* msg, in ReadStunMessageTestCase()
529 StunMessage msg; in TEST_F()
541 StunMessage msg; in TEST_F()
542 StunMessage msg2; in TEST_F()
555 StunMessage msg; in TEST_F()
568 StunMessage msg; in TEST_F()
581 StunMessage msg; in TEST_F()
597 StunMessage msg; in TEST_F()
[all …]
Dstunserver.h37 virtual void OnBindingRequest(StunMessage* msg,
39 void OnAllocateRequest(StunMessage* msg,
41 void OnSharedSecretRequest(StunMessage* msg,
43 void OnSendRequest(StunMessage* msg,
48 const StunMessage& msg, const rtc::SocketAddress& addr,
52 void SendResponse(const StunMessage& msg,
56 void GetStunBindReqponse(StunMessage* request,
58 StunMessage* response) const;
Drelayserver_unittest.cc63 rtc::scoped_ptr<StunMessage> req( in Allocate()
71 rtc::scoped_ptr<StunMessage> req( in Bind()
78 void Send1(const StunMessage* msg) { in Send1()
83 void Send2(const StunMessage* msg) { in Send2()
106 StunMessage* Receive1() { in Receive1()
109 StunMessage* Receive2() { in Receive2()
118 StunMessage* Receive(rtc::TestClient* client) { in Receive()
119 StunMessage* msg = NULL; in Receive()
141 static StunMessage* CreateStunMessage(int type) { in CreateStunMessage()
142 StunMessage* msg = new RelayMessage(); in CreateStunMessage()
[all …]
Dstunserver.cc32 StunMessage msg; in OnPacket()
52 StunMessage* msg, const rtc::SocketAddress& remote_addr) { in OnBindingRequest()
53 StunMessage response; in OnBindingRequest()
59 const StunMessage& msg, const rtc::SocketAddress& addr, in SendErrorResponse()
61 StunMessage err_msg; in SendErrorResponse()
74 const StunMessage& msg, const rtc::SocketAddress& addr) { in SendResponse()
82 void StunServer::GetStunBindReqponse(StunMessage* request, in GetStunBindReqponse()
84 StunMessage* response) const { in GetStunBindReqponse()
Dstun.h132 class StunMessage {
134 StunMessage();
135 virtual ~StunMessage();
190 virtual StunMessage* CreateNew() const { return new StunMessage(); } in CreateNew()
220 virtual void SetOwner(StunMessage* owner) {} in SetOwner()
234 StunMessage* owner);
322 StunXorAddressAttribute(uint16_t type, uint16_t length, StunMessage* owner);
327 virtual void SetOwner(StunMessage* owner) { in SetOwner()
335 StunMessage* owner_;
522 class RelayMessage : public StunMessage {
[all …]
Dstunrequest.h51 bool CheckResponse(StunMessage* msg);
77 StunRequest(StunMessage* request);
97 const StunMessage* msg() const;
109 virtual void Prepare(StunMessage* request) {} in Prepare()
112 virtual void OnResponse(StunMessage* response) {} in OnResponse()
113 virtual void OnErrorResponse(StunMessage* response) {} in OnErrorResponse()
127 StunMessage* msg_;
Dturnport.cc62 void Prepare(StunMessage* request) override;
64 void OnResponse(StunMessage* response) override;
65 void OnErrorResponse(StunMessage* response) override;
70 void OnAuthChallenge(StunMessage* response, int code);
71 void OnTryAlternate(StunMessage* response, int code);
72 void OnUnknownAttribute(StunMessage* response);
80 void Prepare(StunMessage* request) override;
82 void OnResponse(StunMessage* response) override;
83 void OnErrorResponse(StunMessage* response) override;
97 void Prepare(StunMessage* request) override;
[all …]
Dstun.cc45 StunMessage::StunMessage() in StunMessage() function in cricket::StunMessage
53 StunMessage::~StunMessage() { in ~StunMessage()
59 bool StunMessage::IsLegacy() const { in IsLegacy()
66 bool StunMessage::SetTransactionID(const std::string& str) { in SetTransactionID()
74 bool StunMessage::AddAttribute(StunAttribute* attr) { in AddAttribute()
89 const StunAddressAttribute* StunMessage::GetAddress(int type) const { in GetAddress()
106 const StunUInt32Attribute* StunMessage::GetUInt32(int type) const { in GetUInt32()
110 const StunUInt64Attribute* StunMessage::GetUInt64(int type) const { in GetUInt64()
114 const StunByteStringAttribute* StunMessage::GetByteString(int type) const { in GetByteString()
118 const StunErrorCodeAttribute* StunMessage::GetErrorCode() const { in GetErrorCode()
[all …]
Dstunserver_unittest.cc41 void Send(const StunMessage& msg) { in Send()
52 StunMessage* Receive() { in Receive()
53 StunMessage* msg = NULL; in Receive()
58 msg = new StunMessage(); in Receive()
77 StunMessage req; in TEST_F()
83 StunMessage* msg = Receive(); in TEST_F()
Dturnserver.h33 class StunMessage; variable
216 void HandleBindingRequest(TurnServerConnection* conn, const StunMessage* msg);
220 bool GetKey(const StunMessage* msg, std::string* key);
221 bool CheckAuthorization(TurnServerConnection* conn, const StunMessage* msg,
231 void SendErrorResponse(TurnServerConnection* conn, const StunMessage* req,
235 const StunMessage* req,
240 const StunMessage* req,
243 void SendStun(TurnServerConnection* conn, StunMessage* msg);
Dstunrequest.cc88 bool StunRequestManager::CheckResponse(StunMessage* msg) { in CheckResponse()
132 rtc::scoped_ptr<StunMessage> response(iter->second->msg_->CreateNew()); in CheckResponse()
143 msg_(new StunMessage()), tstamp_(0) { in StunRequest()
148 StunRequest::StunRequest(StunMessage* request) in StunRequest()
180 const StunMessage* StunRequest::msg() const { in msg()
Drelayserver.h103 std::string* username, StunMessage* msg);
110 const StunMessage& msg);
111 void HandleStunSend(RelayServerConnection* int_conn, const StunMessage& msg);
154 void SendStun(const StunMessage& msg);
155 void SendStunError(const StunMessage& request, int code, const char* desc);
Dportinterface.h28 class StunMessage; variable
97 virtual void SendBindingResponse(StunMessage* request,
100 StunMessage* request, const rtc::SocketAddress& addr,
Dturnserver.cc96 static bool InitResponse(const StunMessage* req, StunMessage* resp) { in InitResponse()
105 static bool InitErrorResponse(const StunMessage* req, int code, in InitErrorResponse()
106 const std::string& reason, StunMessage* resp) { in InitErrorResponse()
279 bool TurnServer::GetKey(const StunMessage* msg, std::string* key) { in GetKey()
291 const StunMessage* msg, in CheckAuthorization()
328 if (key.empty() || !StunMessage::ValidateMessageIntegrity(data, size, key)) { in CheckAuthorization()
351 const StunMessage* req) { in HandleBindingRequest()
352 StunMessage response; in HandleBindingRequest()
453 const StunMessage* req, in SendErrorResponse()
463 TurnServerConnection* conn, const StunMessage* msg, in SendErrorResponseWithRealmAndNonce()
[all …]
Dteststunserver.h41 void OnBindingRequest(StunMessage* msg, in OnBindingRequest()
46 StunMessage response; in OnBindingRequest()
Dport.h240 virtual void SendBindingResponse(StunMessage* request,
243 StunMessage* request, const rtc::SocketAddress& addr,
272 bool ParseStunUsername(const StunMessage* stun_msg,
588 StunMessage* response);
590 StunMessage* response);
634 StunMessage* response);
Dport.cc338 if (!StunMessage::ValidateFingerprint(data, size)) { in GetStunMessage()
435 bool Port::ParseStunUsername(const StunMessage* stun_msg, in ParseStunUsername()
529 void Port::SendBindingResponse(StunMessage* request, in SendBindingResponse()
543 StunMessage response; in SendBindingResponse()
590 void Port::SendBindingErrorResponse(StunMessage* request, in SendBindingErrorResponse()
596 StunMessage response; in SendBindingErrorResponse()
679 void Prepare(StunMessage* request) override { in Prepare()
733 void OnResponse(StunMessage* response) override { in OnResponse()
737 void OnErrorResponse(StunMessage* response) override { in OnErrorResponse()
1205 StunMessage* response) { in OnConnectionRequestResponse()
[all …]
Drelayport.cc51 bool CheckResponse(StunMessage* msg);
166 void Prepare(StunMessage* request) override;
171 void OnResponse(StunMessage* response) override;
172 void OnErrorResponse(StunMessage* response) override;
426 bool RelayConnection::CheckResponse(StunMessage* msg) { in CheckResponse()
785 void AllocateRequest::Prepare(StunMessage* request) { in Prepare()
810 void AllocateRequest::OnResponse(StunMessage* response) { in OnResponse()
827 void AllocateRequest::OnErrorResponse(StunMessage* response) { in OnErrorResponse()
Drelayserver.cc46 void SendStun(const StunMessage& msg, in SendStun()
55 void SendStunError(const StunMessage& msg, rtc::AsyncPacketSocket* socket, in SendStunError()
298 StunMessage* msg) { in HandleStun()
412 RelayServerConnection* int_conn, const StunMessage& request) { in HandleStunAllocate()
451 RelayServerConnection* int_conn, const StunMessage& request) { in HandleStunSend()
625 void RelayServerConnection::SendStun(const StunMessage& msg) { in SendStun()
633 const StunMessage& request, int error_code, const char* error_desc) { in SendStunError()
Dstunport.cc48 virtual void Prepare(StunMessage* request) override { in Prepare()
52 virtual void OnResponse(StunMessage* response) override { in OnResponse()
74 virtual void OnErrorResponse(StunMessage* response) override { in OnErrorResponse()
Dturnport.h211 void AddRequestAuthInfo(StunMessage* msg);
234 bool UpdateNonce(StunMessage* response);
Dtcpport.h148 StunMessage* response) override;
/external/webrtc/webrtc/p2p/stunprober/
Dstunprober.cc136 cricket::StunMessage message; in SendStunRequest()
174 cricket::StunMessage stun_response; in ProcessResponse()
/external/webrtc/webrtc/p2p/client/
Dfakeportallocator.h48 void SendBindingResponse(StunMessage* request, in SendBindingResponse()

12