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

1 2 3 4 5 6 7

  /external/chromium_org/third_party/libjingle/source/talk/xmpp/
receivetask.cc 33 bool ReceiveTask::HandleStanza(const XmlElement* stanza) {
34 if (WantsStanza(stanza)) {
35 QueueStanza(stanza);
43 const XmlElement* stanza = NextStanza(); local
44 if (stanza == NULL)
47 ReceiveStanza(stanza);
presencereceivetask.h 58 virtual bool HandleStanza(const XmlElement * stanza);
63 void HandlePresence(const Jid& from, const XmlElement * stanza);
65 // Extracts presence information for the presence stanza sent form the
67 static void DecodeStatus(const Jid& from, const XmlElement * stanza,
receivetask.h 36 // indicate that a stanza should be received and ReceiveStanza to
48 virtual bool HandleStanza(const XmlElement* stanza);
50 // Return true if the stanza should be received.
51 virtual bool WantsStanza(const XmlElement* stanza) = 0;
52 // Process the received stanza.
53 virtual void ReceiveStanza(const XmlElement* stanza) = 0;
iqtask.cc 54 bool IqTask::HandleStanza(const buzz::XmlElement* stanza) {
55 if (!MatchResponseIq(stanza, to_, task_id()))
58 if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_RESULT &&
59 stanza->Attr(buzz::QN_TYPE) != buzz::STR_ERROR) {
63 QueueStanza(stanza);
68 const buzz::XmlElement* stanza = NextStanza(); local
69 if (stanza == NULL)
72 bool success = (stanza->Attr(buzz::QN_TYPE) == buzz::STR_RESULT);
74 HandleResult(stanza);
76 SignalError(this, stanza->FirstNamed(QN_ERROR))
    [all...]
pingtask.cc 25 bool PingTask::HandleStanza(const buzz::XmlElement* stanza) {
26 if (!MatchResponseIq(stanza, Jid(STR_EMPTY), task_id())) {
30 if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_RESULT &&
31 stanza->Attr(buzz::QN_TYPE) != buzz::STR_ERROR) {
35 QueueStanza(stanza);
46 const buzz::XmlElement* stanza = NextStanza(); local
47 if (stanza != NULL) {
62 talk_base::scoped_ptr<buzz::XmlElement> stanza(
64 stanza->AddElement(new buzz::XmlElement(QN_PING));
65 SendStanza(stanza.get())
    [all...]
presencereceivetask.cc 49 const XmlElement * stanza = NextStanza(); local
50 if (stanza == NULL) {
54 Jid from(stanza->Attr(QN_FROM));
55 HandlePresence(from, stanza);
60 bool PresenceReceiveTask::HandleStanza(const XmlElement * stanza) {
62 if (stanza->Name() != QN_PRESENCE) {
67 QueueStanza(stanza);
73 const XmlElement* stanza) {
74 if (stanza->Attr(QN_TYPE) == STR_ERROR) {
79 DecodeStatus(from, stanza, &status)
    [all...]
mucroomuniquehangoutidtask.cc 15 // Construct a stanza to request a unique room id. eg:
30 void MucRoomUniqueHangoutIdTask::HandleResult(const XmlElement* stanza) {
32 const XmlElement* unique_elem = stanza->FirstNamed(QN_MUC_UNIQUE_QUERY);
35 SignalError(this, stanza);
  /external/chromium_org/third_party/libjingle/source/talk/examples/chat/
textchatreceivetask.cc 42 bool TextChatReceiveTask::HandleStanza(const XmlElement* stanza) {
43 // Make sure that this stanza is a message
44 if (stanza->Name() != QN_MESSAGE) {
49 const XmlElement* message_body = stanza->FirstNamed(QN_BODY);
55 SignalTextChatReceived(Jid(stanza->Attr(QN_FROM)), Jid(stanza->Attr(QN_TO)),
  /external/chromium_org/jingle/notifier/listener/
send_ping_task.cc 33 scoped_ptr<buzz::XmlElement> stanza(MakePingStanza(ping_task_id_));
34 DVLOG(1) << "Sending ping stanza " << XmlElementToString(*stanza);
35 if (SendStanza(stanza.get()) != buzz::XMPP_RETURN_OK) {
36 DLOG(WARNING) << "Could not send stanza " << XmlElementToString(*stanza);
43 const buzz::XmlElement* stanza = NextStanza(); local
44 if (stanza == NULL) {
48 DVLOG(1) << "Received stanza " << XmlElementToString(*stanza);
73 buzz::XmlElement* stanza = MakeIq(buzz::STR_GET, local
    [all...]
push_notifications_listen_task.cc 39 const buzz::XmlElement* stanza = NextStanza(); local
40 if (stanza == NULL) {
44 DVLOG(1) << "Received stanza " << XmlElementToString(*stanza);
50 // Extract the service URL and service-specific data from the stanza.
52 // The response stanza has the following format.
64 const buzz::XmlElement* push_element = stanza->FirstNamed(kQnPush);
81 LOG(WARNING) << "No push element found in stanza "
82 << XmlElementToString(*stanza);
87 bool PushNotificationsListenTask::HandleStanza(const buzz::XmlElement* stanza) {
    [all...]
  /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_org/third_party/libjingle/source/talk/p2p/client/
sessionmanagertask.h 61 const buzz::XmlElement *stanza = NextStanza(); local
62 if (stanza == NULL)
64 session_manager_->OnIncomingMessage(stanza);
69 virtual bool HandleStanza(const buzz::XmlElement *stanza) {
70 if (!session_manager_->IsSessionMessage(stanza))
73 //if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_SET)
75 QueueStanza(stanza);
81 const buzz::XmlElement* stanza) {
84 sender->Send(stanza);
sessionsendtask.h 40 // The job of this task is to send an IQ stanza out (after stamping it with
61 void Send(const buzz::XmlElement* stanza) {
66 ASSERT(stanza->Name() == buzz::QN_IQ);
67 ASSERT(stanza->HasAttr(buzz::QN_TYPE));
68 if (stanza->Attr(buzz::QN_TYPE) == "set") {
69 ASSERT(!stanza->HasAttr(buzz::QN_ID));
71 ASSERT((stanza->Attr(buzz::QN_TYPE) == "result") ||
72 (stanza->Attr(buzz::QN_TYPE) == "error"));
73 ASSERT(stanza->HasAttr(buzz::QN_ID));
76 stanza_.reset(new buzz::XmlElement(*stanza));
    [all...]
  /external/chromium_org/third_party/libjingle/source/talk/examples/plus/
rostertask.cc 48 virtual bool HandleStanza(const XmlElement * stanza);
118 const XmlElement * stanza = NextStanza(); local
119 if (stanza == NULL)
122 if (stanza->Name() == QN_IQ) {
124 bool result = (stanza->Attr(QN_TYPE) == STR_RESULT);
128 TranslateItems(stanza->FirstNamed(QN_ROSTER_QUERY));
132 } else if (stanza->Name() == QN_PRESENCE) {
133 Jid jid(stanza->Attr(QN_FROM));
134 std::string type = stanza->Attr(QN_TYPE);
148 bool RosterTask::HandleStanza(const XmlElement * stanza) {
    [all...]
presencepushtask.cc 55 PresencePushTask::HandleStanza(const XmlElement * stanza) {
56 if (stanza->Name() != QN_PRESENCE)
58 if (stanza->HasAttr(QN_TYPE) && stanza->Attr(QN_TYPE) != STR_UNAVAILABLE) {
59 if (stanza->Attr(QN_TYPE) == STR_ERROR) {
61 const XmlElement* error_xml_elem = stanza->FirstNamed(QN_ERROR);
69 QueueStanza(stanza);
80 const XmlElement * stanza = NextStanza(); local
81 if (stanza == NULL)
85 s.set_jid(Jid(stanza->Attr(QN_FROM)))
    [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...]
  /external/chromium_org/third_party/libjingle/source/talk/examples/call/
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...]
  /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_org/remoting/host/
host_change_notification_listener.cc 47 const buzz::XmlElement* stanza) {
48 if (stanza->Name() != buzz::QN_IQ || stanza->Attr(buzz::QN_TYPE) != "set")
52 stanza->FirstNamed(QName(kChromotingXmlNamespace, "host-changed"));
58 const std::string& from = stanza->Attr(buzz::QN_FROM);
59 const std::string& to = stanza->Attr(buzz::QN_TO);
73 LOG(ERROR) << "Invalid host-changed message received: " << stanza->Str();
  /external/chromium_org/remoting/jingle_glue/
mock_objects.h 29 MOCK_METHOD1(SendStanzaPtr, bool(buzz::XmlElement* stanza));
30 virtual bool SendStanza(scoped_ptr<buzz::XmlElement> stanza) OVERRIDE {
31 return SendStanzaPtr(stanza.release());
  /external/smack/src/org/jivesoftware/smack/sasl/
SASLMechanism.java 48 * <li>{@link #authenticate(String, String, String)} -- Initiate authentication stanza using the
50 * <li>{@link #authenticate(String, String, CallbackHandler)} -- Initiate authentication stanza
71 * Builds and sends the <tt>auth</tt> stanza to the server. Note that this method of
97 * Builds and sends the <tt>auth</tt> stanza to the server. The callback handler will handle
130 * The server is challenging the SASL mechanism for the stanza he just sent. Send a
207 StringBuilder stanza = new StringBuilder(); local
208 stanza.append("<auth mechanism=\"").append(name);
209 stanza.append("\" xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
212 stanza.append(authenticationText);
214 stanza.append("</auth>");
230 StringBuilder stanza = new StringBuilder(); local
261 StringBuilder stanza = new StringBuilder(); local
282 StringBuilder stanza = new StringBuilder(); local
313 StringBuilder stanza = new StringBuilder(); local
    [all...]

Completed in 876 milliseconds

1 2 3 4 5 6 7