Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/libjingle/source/talk/p2p/base/
Dstunrequest_unittest.cc53 void OnResponse(StunMessage* res) { in OnResponse()
57 void OnErrorResponse(StunMessage* res) { in OnErrorResponse()
66 static StunMessage* CreateStunMessage(StunMessageType type, in CreateStunMessage()
67 StunMessage* req) { in CreateStunMessage()
68 StunMessage* msg = new StunMessage(); in CreateStunMessage()
88 StunMessage* response_;
97 StunRequestThunker(StunMessage* msg, StunRequestTest* test) in StunRequestThunker()
101 virtual void OnResponse(StunMessage* res) { in OnResponse()
104 virtual void OnErrorResponse(StunMessage* res) { in OnErrorResponse()
111 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()
80 size_t ReadStunMessageTestCase(StunMessage* msg, in ReadStunMessageTestCase()
573 StunMessage msg; in TEST_F()
585 StunMessage msg; in TEST_F()
586 StunMessage msg2; in TEST_F()
599 StunMessage msg; in TEST_F()
612 StunMessage msg; in TEST_F()
625 StunMessage msg; in TEST_F()
641 StunMessage msg; in TEST_F()
[all …]
Drelayserver_unittest.cc79 talk_base::scoped_ptr<StunMessage> req( in Allocate()
87 talk_base::scoped_ptr<StunMessage> req( in Bind()
94 void Send1(const StunMessage* msg) { in Send1()
99 void Send2(const StunMessage* msg) { in Send2()
115 StunMessage* Receive1() { in Receive1()
118 StunMessage* Receive2() { in Receive2()
127 StunMessage* Receive(talk_base::TestClient* client) { in Receive()
128 StunMessage* msg = NULL; in Receive()
148 static StunMessage* CreateStunMessage(int type) { in CreateStunMessage()
149 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 talk_base::SocketAddress& addr,
69 void SendResponse(const StunMessage& msg,
Dturnport.cc74 virtual void Prepare(StunMessage* request);
75 virtual void OnResponse(StunMessage* response);
76 virtual void OnErrorResponse(StunMessage* response);
81 void OnAuthChallenge(StunMessage* response, int code);
82 void OnUnknownAttribute(StunMessage* response);
90 virtual void Prepare(StunMessage* request);
91 virtual void OnResponse(StunMessage* response);
92 virtual void OnErrorResponse(StunMessage* response);
104 virtual void Prepare(StunMessage* request);
105 virtual void OnResponse(StunMessage* response);
[all …]
Dstun.h147 class StunMessage {
149 StunMessage();
150 virtual ~StunMessage();
205 virtual StunMessage* CreateNew() const { return new StunMessage(); } in CreateNew()
235 virtual void SetOwner(StunMessage* owner) {} in SetOwner()
247 uint16 length, StunMessage* owner);
336 StunMessage* owner);
341 virtual void SetOwner(StunMessage* owner) { in SetOwner()
349 StunMessage* owner_;
536 class RelayMessage : public StunMessage {
[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 talk_base::SocketAddress& remote_addr) { in OnBindingRequest()
70 StunMessage response; in OnBindingRequest()
88 const StunMessage& msg, const talk_base::SocketAddress& addr, in SendErrorResponse()
90 StunMessage err_msg; in SendErrorResponse()
103 const StunMessage& msg, const talk_base::SocketAddress& addr) { in SendResponse()
Dstun.cc61 StunMessage::StunMessage() in StunMessage() function in cricket::StunMessage
69 StunMessage::~StunMessage() { in ~StunMessage()
75 bool StunMessage::IsLegacy() const { in IsLegacy()
82 bool StunMessage::SetTransactionID(const std::string& str) { in SetTransactionID()
90 bool StunMessage::AddAttribute(StunAttribute* attr) { in AddAttribute()
105 const StunAddressAttribute* StunMessage::GetAddress(int type) const { in GetAddress()
122 const StunUInt32Attribute* StunMessage::GetUInt32(int type) const { in GetUInt32()
126 const StunUInt64Attribute* StunMessage::GetUInt64(int type) const { in GetUInt64()
130 const StunByteStringAttribute* StunMessage::GetByteString(int type) const { in GetByteString()
134 const StunErrorCodeAttribute* StunMessage::GetErrorCode() const { in GetErrorCode()
[all …]
Dturnserver.h50 class StunMessage; variable
136 void HandleBindingRequest(Connection* conn, const StunMessage* msg);
140 bool GetKey(const StunMessage* msg, std::string* key);
141 bool CheckAuthorization(Connection* conn, const StunMessage* msg,
151 void SendErrorResponse(Connection* conn, const StunMessage* req,
155 const StunMessage* req,
158 void SendStun(Connection* conn, StunMessage* msg);
Dstunrequest.cc88 bool StunRequestManager::CheckResponse(StunMessage* msg) { in CheckResponse()
126 talk_base::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.h45 class StunMessage; variable
115 virtual void SendBindingResponse(StunMessage* request,
118 StunMessage* request, const talk_base::SocketAddress& addr,
Dport.h249 virtual void SendBindingResponse(StunMessage* request,
252 StunMessage* request, const talk_base::SocketAddress& addr,
282 bool ParseStunUsername(const StunMessage* stun_msg,
540 StunMessage* response);
542 StunMessage* response);
583 StunMessage* response);
/external/chromium/third_party/libjingle/source/talk/p2p/base/
Dstunserver.cc54 StunMessage msg; in OnPacket()
86 StunMessage* msg, const talk_base::SocketAddress& remote_addr) { in OnBindingRequest()
87 StunMessage response; in OnBindingRequest()
121 StunMessage* msg, const talk_base::SocketAddress& addr) { in OnAllocateRequest()
126 StunMessage* msg, const talk_base::SocketAddress& addr) { in OnSharedSecretRequest()
130 void StunServer::OnSendRequest(StunMessage* msg, in OnSendRequest()
136 const StunMessage& msg, const talk_base::SocketAddress& addr, in SendErrorResponse()
139 StunMessage err_msg; in SendErrorResponse()
153 const StunMessage& msg, const talk_base::SocketAddress& addr) { in SendResponse()
Dstunserver.h53 void OnBindingRequest(StunMessage* msg,
55 void OnAllocateRequest(StunMessage* msg,
57 void OnSharedSecretRequest(StunMessage* msg,
59 void OnSendRequest(StunMessage* msg,
64 const StunMessage& msg, const talk_base::SocketAddress& addr,
68 void SendResponse(const StunMessage& msg,
Dstunrequest.h61 bool CheckResponse(StunMessage* msg);
81 StunRequest(StunMessage* request);
108 virtual void Prepare(StunMessage* request) {} in Prepare()
111 virtual void OnResponse(StunMessage* response) {} in OnResponse()
112 virtual void OnErrorResponse(StunMessage* response) {} in OnErrorResponse()
119 StunMessage* msg_;
Dstun.cc49 StunMessage::StunMessage() : type_(0), length_(0), in StunMessage() function in cricket::StunMessage
55 StunMessage::~StunMessage() { in ~StunMessage()
61 void StunMessage::SetTransactionID(const std::string& str) { in SetTransactionID()
66 void StunMessage::AddAttribute(StunAttribute* attr) { in AddAttribute()
72 StunMessage::GetAddress(StunAttributeType type) const { in GetAddress()
91 StunMessage::GetUInt32(StunAttributeType type) const { in GetUInt32()
106 StunMessage::GetByteString(StunAttributeType type) const { in GetByteString()
121 const StunErrorCodeAttribute* StunMessage::GetErrorCode() const { in GetErrorCode()
126 const StunUInt16ListAttribute* StunMessage::GetUnknownAttributes() const { in GetUnknownAttributes()
131 const StunTransportPrefsAttribute* StunMessage::GetTransportPrefs() const { in GetTransportPrefs()
[all …]
Drelayserver.cc64 void SendStun(const StunMessage& msg, in SendStun()
73 void SendStunError(const StunMessage& msg, talk_base::AsyncPacketSocket* socket, in SendStunError()
76 StunMessage err_msg; in SendStunError()
268 StunMessage msg; in OnExternalPacket()
315 StunMessage* msg) { in HandleStun()
346 StunMessage request; in HandleStunAllocate()
406 StunMessage request; in HandleStun()
430 RelayServerConnection* int_conn, const StunMessage& request) { in HandleStunAllocate()
435 StunMessage response; in HandleStunAllocate()
472 RelayServerConnection* int_conn, const StunMessage& request) { in HandleStunSend()
[all …]
Dport.cc206 StunMessage* msg; in OnReadPacket()
229 StunMessage** out_msg, std::string* out_username) { in GetStunMessage()
240 talk_base::scoped_ptr<StunMessage> stun_msg(new StunMessage()); in GetStunMessage()
323 void Port::SendBindingResponse(StunMessage* request, in SendBindingResponse()
337 StunMessage response; in SendBindingResponse()
370 void Port::SendBindingErrorResponse(StunMessage* request, in SendBindingErrorResponse()
386 StunMessage response; in SendBindingErrorResponse()
472 virtual void Prepare(StunMessage* request) { in Prepare()
482 virtual void OnResponse(StunMessage* response) { in OnResponse()
486 virtual void OnErrorResponse(StunMessage* response) { in OnErrorResponse()
[all …]
Drelayserver.h117 std::string* username, StunMessage* msg);
124 const StunMessage& msg);
125 void HandleStunSend(RelayServerConnection* int_conn, const StunMessage& msg);
168 void SendStun(const StunMessage& msg);
169 void SendStunError(const StunMessage& request, int code, const char* desc);
Dport.h163 sigslot::signal4<Port*, const talk_base::SocketAddress&, StunMessage*,
169 void SendBindingResponse(StunMessage* request,
172 StunMessage* request, const talk_base::SocketAddress& addr,
237 StunMessage** out_msg, std::string* out_username);
370 StunMessage* response);
372 StunMessage* response);
Dstunrequest.cc85 bool StunRequestManager::CheckResponse(StunMessage* msg) { in CheckResponse()
122 StunMessage msg; in CheckResponse()
131 id_(talk_base::CreateRandomString(16)), msg_(new StunMessage()), in StunRequest()
136 StunRequest::StunRequest(StunMessage* request) in StunRequest()
Drelayport.cc67 bool CheckResponse(StunMessage* msg);
172 virtual void Prepare(StunMessage* request);
176 virtual void OnResponse(StunMessage* response);
177 virtual void OnErrorResponse(StunMessage* response);
396 bool RelayConnection::CheckResponse(StunMessage* msg) { in CheckResponse()
536 StunMessage request; in SendTo()
668 StunMessage msg; in OnReadPacket()
731 void AllocateRequest::Prepare(StunMessage* request) { in Prepare()
757 void AllocateRequest::OnResponse(StunMessage* response) { in OnResponse()
774 void AllocateRequest::OnErrorResponse(StunMessage* response) { in OnErrorResponse()

12