HomeSort by relevance Sort by last modified time
    Searched refs:stanza (Results 1 - 25 of 29) sorted by null

1 2

  /external/chromium/third_party/libjingle/source/talk/p2p/client/
sessionmanagertask.h 60 const buzz::XmlElement *stanza = NextStanza(); local
61 if (stanza == NULL)
63 session_manager_->OnIncomingMessage(stanza);
68 virtual bool HandleStanza(const buzz::XmlElement *stanza) {
69 if (!session_manager_->IsSessionMessage(stanza))
72 //if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_SET)
74 QueueStanza(stanza);
82 const buzz::XmlElement* stanza) {
85 sender->Send(stanza);
sessionsendtask.h 40 // The job of this task is to send an IQ stanza out (after stamping it with
58 void Send(const buzz::XmlElement* stanza) {
63 ASSERT(stanza->Name() == buzz::QN_IQ);
64 ASSERT(stanza->HasAttr(buzz::QN_TYPE));
65 if (stanza->Attr(buzz::QN_TYPE) == "set") {
66 ASSERT(!stanza->HasAttr(buzz::QN_ID));
68 ASSERT((stanza->Attr(buzz::QN_TYPE) == "result") ||
69 (stanza->Attr(buzz::QN_TYPE) == "error"));
70 ASSERT(stanza->HasAttr(buzz::QN_ID));
73 stanza_.reset(new buzz::XmlElement(*stanza));
    [all...]
  /external/chromium/third_party/libjingle/source/talk/examples/call/
discoitemsquerytask.cc 64 const XmlElement* stanza = NextStanza(); local
65 if (stanza == NULL)
69 if (stanza->Attr(QN_TYPE) != STR_ERROR) {
70 const XmlElement* query = stanza->FirstNamed(QN_DISCO_ITEMS_QUERY);
78 SignalDiscoItemsError(to_, stanza->FirstNamed(QN_ERROR));
89 bool DiscoItemsQueryTask::HandleStanza(const XmlElement* stanza) {
90 if (!MatchResponseIq(stanza, to_, task_id()))
92 QueueStanza(stanza);
presencepushtask.h 54 virtual bool HandleStanza(const XmlElement * stanza);
55 void HandlePresence(const Jid& from, const XmlElement * stanza);
57 const Jid& from, const XmlElement * stanza);
58 static void FillStatus(const Jid& from, const XmlElement * stanza,
60 static void FillMucStatus(const Jid& from, const XmlElement * stanza,
presencepushtask.cc 57 bool PresencePushTask::HandleStanza(const XmlElement * stanza) {
58 if (stanza->Name() != QN_PRESENCE)
60 QueueStanza(stanza);
70 const XmlElement * stanza = NextStanza(); local
71 if (stanza == NULL)
74 Jid from(stanza->Attr(QN_FROM));
78 HandlePresence(from, stanza);
80 HandleMucPresence(elem->second, from, stanza);
87 const XmlElement* stanza) {
88 if (stanza->Attr(QN_TYPE) == STR_ERROR
    [all...]
mucinvitesendtask.cc 53 const XmlElement* stanza = NextStanza(); local
54 if (stanza == NULL)
57 if (SendStanza(stanza) != XMPP_RETURN_OK)
mucinviterecvtask.cc 75 MucInviteRecvTask::HandleStanza(const XmlElement* stanza) {
80 if (stanza->Name() != QN_MESSAGE) return false;
81 xstanza = stanza->FirstNamed(QN_MUC_USER_X);
113 SignalInviteReceived(Jid(invite->Attr(QN_FROM)), Jid(stanza->Attr(QN_FROM)),
discoitemsquerytask.h 60 // TODO: Currently, this only supports one query stanza - we may eventually
76 virtual bool HandleStanza(const XmlElement* stanza);
friendinvitesendtask.cc 66 const XmlElement* stanza = NextStanza(); local
67 if (stanza == NULL)
70 if (SendStanza(stanza) != XMPP_RETURN_OK)
mucinviterecvtask.h 75 virtual bool HandleStanza(const XmlElement* stanza);
presenceouttask.cc 71 const XmlElement * stanza = NextStanza(); local
72 if (stanza == NULL)
75 if (SendStanza(stanza) != XMPP_RETURN_OK)
  /external/chromium/net/tools/testserver/
xmppserver.py 93 def FeedStanza(self, stanza):
95 print stanza.toprettyxml()
149 stanza = ParseXml(xml_text)
150 self._delegate.FeedStanza(stanza)
151 # Needed because stanza may have cycles.
152 stanza.unlink()
255 def FeedStanza(self, stanza):
256 """Inspects the given stanza and changes the handshake state if needed.
258 Called when a stanza is received from the client. Inspects the
259 stanza to make sure it has the expected attributes given th
    [all...]
  /external/chromium/chrome/browser/sync/notifier/
cache_invalidation_packet_handler.cc 54 const buzz::XmlElement* stanza = NextStanza(); local
55 if (stanza == NULL) {
61 if (GetCacheInvalidationIqPacketData(stanza, &data)) {
68 scoped_ptr<buzz::XmlElement> response_stanza(MakeIqResult(stanza));
73 virtual bool HandleStanza(const buzz::XmlElement* stanza) {
74 VLOG(1) << "Stanza received: "
75 << notifier::XmlElementToString(*stanza);
76 if (IsValidCacheInvalidationIqPacket(stanza)) {
77 VLOG(2) << "Queueing stanza";
78 QueueStanza(stanza);
135 const buzz::XmlElement* stanza = NextStanza(); local
    [all...]
  /external/chromium/third_party/libjingle/source/talk/xmpp/
xmpptask.h 54 // right away, they should decide if they own the sent stanza,
55 // and if so, queue it and Wake() the task, or if a stanza does not belong
59 // for example, disconnect a client while processing a stanza -
87 XmppReturnStatus SendStanza(const XmlElement* stanza);
94 virtual bool HandleStanza(const XmlElement* stanza) { return false; }
98 virtual void QueueStanza(const XmlElement* stanza);
101 bool MatchResponseIq(const XmlElement* stanza, const Jid& to,
104 static bool MatchRequestIq(const XmlElement* stanza, const std::string& type,
xmpptask.cc 65 XmppReturnStatus XmppTask::SendStanza(const XmlElement* stanza) {
68 return client_->SendStanza(stanza);
88 void XmppTask::QueueStanza(const XmlElement* stanza) {
94 stanza_queue_.push_back(new XmlElement(*stanza));
131 bool XmppTask::MatchResponseIq(const XmlElement* stanza,
134 if (stanza->Name() != QN_IQ)
137 if (stanza->Attr(QN_ID) != id)
140 Jid from(stanza->Attr(QN_FROM));
154 bool XmppTask::MatchRequestIq(const XmlElement* stanza,
157 if (stanza->Name() != QN_IQ
    [all...]
xmppengineimpl.cc 321 XmppEngineImpl::IncomingStanza(const XmlElement * stanza) {
325 if (stanza->Name() == QN_STREAM_ERROR) {
327 SignalStreamError(stanza);
330 login_task_->IncomingStanza(stanza, false);
333 } else if (HandleIqResponse(stanza)) {
338 (*stanza_handlers_[HL_PEEK])[i]->HandleStanza(stanza);
344 if ((*stanza_handlers_[level])[i]->HandleStanza(stanza))
349 // If nobody wants to handle a stanza then send back an error.
352 std::string type = stanza->Attr(QN_TYPE);
353 if (stanza->Name() == QN_IQ &&
    [all...]
xmppclient.h 92 // When there is a <stream:error> stanza, return the stanza
105 XmppReturnStatus SendStanza(const XmlElement *stanza);
  /external/chromium/third_party/libjingle/source/talk/p2p/base/
sessionmanager.cc 130 bool SessionManager::IsSessionMessage(const buzz::XmlElement* stanza) {
131 return cricket::IsSessionMessage(stanza);
147 void SessionManager::OnIncomingMessage(const buzz::XmlElement* stanza) {
151 if (!ParseSessionMessage(stanza, &msg, &error)) {
152 SendErrorMessage(stanza, buzz::QN_STANZA_BAD_REQUEST, "modify",
163 SendErrorMessage(stanza, buzz::QN_STANZA_BAD_REQUEST, "modify",
171 SendErrorMessage(stanza, buzz::QN_STANZA_BAD_REQUEST, "modify",
177 SendErrorMessage(stanza, buzz::QN_STANZA_BAD_REQUEST, "modify",
218 void SessionManager::SendErrorMessage(const buzz::XmlElement* stanza,
224 CreateErrorMessage(stanza, name, type, text, extra_info))
    [all...]
sessionmanager.h 92 // Determines whether the given stanza is intended for some session.
93 bool IsSessionMessage(const buzz::XmlElement* stanza);
99 // Called when we receive a stanza for which IsSessionMessage is true.
100 void OnIncomingMessage(const buzz::XmlElement* stanza);
152 // in the stanza they sent. name identifies the error, type is one of the
155 void SendErrorMessage(const buzz::XmlElement* stanza,
164 const buzz::XmlElement* stanza,
174 void OnOutgoingMessage(Session* session, const buzz::XmlElement* stanza);
178 const buzz::XmlElement* stanza,
sessionmessages.h 73 // Abstraction of a <jingle> element within an <iq> stanza, per XMPP
80 SessionMessage() : action_elem(NULL), stanza(NULL) {}
85 action_elem(NULL), stanza(NULL) {}
99 const buzz::XmlElement* stanza; member in struct:cricket::SessionMessage
203 bool IsSessionMessage(const buzz::XmlElement* stanza);
204 bool ParseSessionMessage(const buzz::XmlElement* stanza,
214 buzz::XmlElement* stanza);
268 bool FindSessionRedirect(const buzz::XmlElement* stanza,
sessionmessages.cc 128 bool IsJingleMessage(const buzz::XmlElement* stanza) {
129 const buzz::XmlElement* jingle = stanza->FirstNamed(QN_JINGLE);
142 bool IsGingleMessage(const buzz::XmlElement* stanza) {
143 const buzz::XmlElement* session = stanza->FirstNamed(QN_GINGLE_SESSION);
152 bool IsSessionMessage(const buzz::XmlElement* stanza) {
153 return (stanza->Name() == buzz::QN_IQ &&
154 stanza->Attr(buzz::QN_TYPE) == buzz::STR_SET &&
155 (IsJingleMessage(stanza) ||
156 IsGingleMessage(stanza)));
207 bool ParseSessionMessage(const buzz::XmlElement* stanza,
    [all...]
session.cc 596 const buzz::XmlElement* stanza,
602 SignalErrorMessage(this, stanza, name, type, text, extra_info);
660 SendAcknowledgementMessage(msg.stanza);
662 SignalErrorMessage(this, msg.stanza, error.type,
1027 talk_base::scoped_ptr<buzz::XmlElement> stanza(
1032 WriteSessionMessage(msg, action_elems, stanza.get());
1034 SignalOutgoingMessage(this, stanza.get());
1041 talk_base::scoped_ptr<buzz::XmlElement> stanza(
1043 if (!WriteActionMessage(type, action, stanza.get(), error))
1046 SignalOutgoingMessage(this, stanza.get())
    [all...]
session.h 419 // these messages are just the transport part of the stanza; they need to be
427 const buzz::XmlElement* stanza,
470 // Helper methods to write the session message stanza.
473 buzz::XmlElement* stanza, WriteError* error);
477 buzz::XmlElement* stanza, WriteError* error);
494 void SendAcknowledgementMessage(const buzz::XmlElement* stanza);
516 // pointers to the whole stanza or to just the session element.
  /external/chromium/third_party/libjingle/source/talk/examples/login/
xmpppump.cc 74 buzz::XmppReturnStatus XmppPump::SendStanza(const buzz::XmlElement *stanza) {
76 return client_->SendStanza(stanza);
xmpppump.h 66 buzz::XmppReturnStatus SendStanza(const buzz::XmlElement *stanza);

Completed in 139 milliseconds

1 2