/external/webrtc/webrtc/libjingle/xmpp/ |
receivetask.cc | 16 bool ReceiveTask::HandleStanza(const XmlElement* stanza) { 17 if (WantsStanza(stanza)) { 18 QueueStanza(stanza); 26 const XmlElement* stanza = NextStanza(); local 27 if (stanza == NULL) 30 ReceiveStanza(stanza);
|
pingtask.cc | 32 bool PingTask::HandleStanza(const buzz::XmlElement* stanza) { 33 if (!MatchResponseIq(stanza, Jid(STR_EMPTY), task_id())) { 37 if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_RESULT && 38 stanza->Attr(buzz::QN_TYPE) != buzz::STR_ERROR) { 42 QueueStanza(stanza); 53 const buzz::XmlElement* stanza = NextStanza(); local 54 if (stanza != NULL) { 69 rtc::scoped_ptr<buzz::XmlElement> stanza( 71 stanza->AddElement(new buzz::XmlElement(QN_PING)); 72 SendStanza(stanza.get()) [all...] |
iqtask.cc | 37 bool IqTask::HandleStanza(const buzz::XmlElement* stanza) { 38 if (!MatchResponseIq(stanza, to_, task_id())) 41 if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_RESULT && 42 stanza->Attr(buzz::QN_TYPE) != buzz::STR_ERROR) { 46 QueueStanza(stanza); 51 const buzz::XmlElement* stanza = NextStanza(); local 52 if (stanza == NULL) 55 bool success = (stanza->Attr(buzz::QN_TYPE) == buzz::STR_RESULT); 57 HandleResult(stanza); 59 SignalError(this, stanza->FirstNamed(QN_ERROR)) [all...] |
iqtask.h | 28 const XmlElement* stanza() const { return stanza_.get(); } function in class:buzz::IqTask 38 virtual bool HandleStanza(const XmlElement* stanza);
|
presenceouttask.cc | 59 const XmlElement * stanza = NextStanza(); local 60 if (stanza == NULL) 63 if (SendStanza(stanza) != XMPP_RETURN_OK)
|
jingleinfotask.cc | 42 virtual bool HandleStanza(const XmlElement * stanza) { 43 if (!MatchResponseIq(stanza, Jid(), task_id())) 46 if (stanza->Attr(QN_TYPE) != STR_RESULT) 49 // Queue the stanza with the parent so these don't get handled out of order 51 parent->QueueStanza(stanza); 69 JingleInfoTask::HandleStanza(const XmlElement * stanza) { 70 if (!MatchRequestIq(stanza, "set", QN_JINGLE_INFO_QUERY)) 74 Jid from(stanza->Attr(QN_FROM)); 80 QueueStanza(stanza); 89 const XmlElement * stanza = NextStanza() local [all...] |
presencereceivetask.cc | 32 const XmlElement * stanza = NextStanza(); local 33 if (stanza == NULL) { 37 Jid from(stanza->Attr(QN_FROM)); 38 HandlePresence(from, stanza); 43 bool PresenceReceiveTask::HandleStanza(const XmlElement * stanza) { 45 if (stanza->Name() != QN_PRESENCE) { 50 QueueStanza(stanza); 56 const XmlElement* stanza) { 57 if (stanza->Attr(QN_TYPE) == STR_ERROR) { 62 DecodeStatus(from, stanza, &status) [all...] |
pubsub_task.cc | 32 bool PubsubTask::HandleStanza(const buzz::XmlElement* stanza) { 33 const buzz::QName& stanza_name(stanza->Name()); 35 if (MatchStanzaFrom(stanza, pubsub_node_jid_)) { 37 stanza->FirstNamed(QN_PUBSUB_EVENT); 44 if (MatchResponseIq(stanza, pubsub_node_jid_, task_id())) { 45 const buzz::XmlElement* pubsub_item = stanza->FirstNamed(QN_PUBSUB); 56 const buzz::XmlElement* stanza = NextStanza(); local 57 if (stanza == NULL) { 61 if (stanza->Attr(buzz::QN_TYPE) == buzz::STR_ERROR) { 62 OnPubsubError(stanza->FirstNamed(buzz::QN_ERROR)) [all...] |