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

1 2

  /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);
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 rtc::scoped_ptr<buzz::XmlElement> stanza(
64 stanza->AddElement(new buzz::XmlElement(QN_PING));
65 SendStanza(stanza.get())
    [all...]
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...]
iqtask.h 45 const XmlElement* stanza() const { return stanza_.get(); } function in class:buzz::IqTask
55 virtual bool HandleStanza(const XmlElement* stanza);
presenceouttask.cc 75 const XmlElement * stanza = NextStanza(); local
76 if (stanza == NULL)
79 if (SendStanza(stanza) != XMPP_RETURN_OK)
jingleinfotask.cc 59 virtual bool HandleStanza(const XmlElement * stanza) {
60 if (!MatchResponseIq(stanza, Jid(), task_id()))
63 if (stanza->Attr(QN_TYPE) != STR_RESULT)
66 // Queue the stanza with the parent so these don't get handled out of order
68 parent->QueueStanza(stanza);
86 JingleInfoTask::HandleStanza(const XmlElement * stanza) {
87 if (!MatchRequestIq(stanza, "set", QN_JINGLE_INFO_QUERY))
91 Jid from(stanza->Attr(QN_FROM));
97 QueueStanza(stanza);
106 const XmlElement * stanza = NextStanza() local
    [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...]
pubsub_task.cc 49 bool PubsubTask::HandleStanza(const buzz::XmlElement* stanza) {
50 const buzz::QName& stanza_name(stanza->Name());
52 if (MatchStanzaFrom(stanza, pubsub_node_jid_)) {
54 stanza->FirstNamed(QN_PUBSUB_EVENT);
61 if (MatchResponseIq(stanza, pubsub_node_jid_, task_id())) {
62 const buzz::XmlElement* pubsub_item = stanza->FirstNamed(QN_PUBSUB);
73 const buzz::XmlElement* stanza = NextStanza(); local
74 if (stanza == NULL) {
78 if (stanza->Attr(buzz::QN_TYPE) == buzz::STR_ERROR) {
79 OnPubsubError(stanza->FirstNamed(buzz::QN_ERROR))
    [all...]
  /external/chromium_org/remoting/client/
server_log_entry_client_unittest.cc 25 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local
32 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error))
39 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local
47 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error))
54 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local
66 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error))
72 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local
79 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error))
83 stanza = entry->ToStanza();
86 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error)
94 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local
113 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local
    [all...]
  /external/chromium_org/remoting/host/
server_log_entry_host_unittest.cc 20 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local
27 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error))
33 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local
39 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error))
46 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local
67 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error)) <<
74 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local
82 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error)) <<
89 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local
97 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error)) <
    [all...]
host_change_notification_listener_unittest.cc 71 scoped_ptr<XmlElement> stanza(new XmlElement(buzz::QN_IQ));
72 stanza->AddAttr(QName(std::string(), "type"), "set");
78 stanza->AddElement(host_changed);
79 stanza->AddAttr(buzz::QN_FROM, botJid);
80 stanza->AddAttr(buzz::QN_TO, kTestJid);
81 return stanza.Pass();
94 scoped_ptr<XmlElement> stanza = GetNotificationStanza( local
97 stanza.get());
106 scoped_ptr<XmlElement> stanza = GetNotificationStanza( local
109 stanza.get())
120 scoped_ptr<XmlElement> stanza = GetNotificationStanza( local
132 scoped_ptr<XmlElement> stanza = GetNotificationStanza( local
144 scoped_ptr<XmlElement> stanza = GetNotificationStanza( local
    [all...]
  /external/chromium_org/third_party/libjingle/source/talk/examples/call/
mucinvitesendtask.cc 53 const XmlElement* stanza = NextStanza(); local
54 if (stanza == NULL)
57 if (SendStanza(stanza) != XMPP_RETURN_OK)
friendinvitesendtask.cc 66 const XmlElement* stanza = NextStanza(); local
67 if (stanza == NULL)
70 if (SendStanza(stanza) != XMPP_RETURN_OK)
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/jingle/notifier/listener/
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...]
push_notifications_subscribe_task.cc 34 const buzz::XmlElement* stanza) {
35 if (!MatchResponseIq(stanza, GetClient()->jid().BareJid(), task_id()))
37 QueueStanza(stanza);
46 DVLOG(1) << "Push notifications: Subscription stanza: "
59 const buzz::XmlElement* stanza = NextStanza(); local
60 if (stanza == NULL) {
64 << XmlElementToString(*stanza);
66 if (stanza->HasAttr(buzz::QN_TYPE) &&
67 stanza->Attr(buzz::QN_TYPE) == buzz::STR_RESULT) {
85 // Create the subscription stanza using the notifications protocol
    [all...]
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...]
  /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);
  /external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/packet/
Open.java 33 /* stanza type used to encapsulate the data */
34 private final StanzaType stanza; field in class:Open
47 * @param stanza stanza type used to encapsulate the data
49 public Open(String sessionID, int blockSize, StanzaType stanza) {
59 this.stanza = stanza;
98 * Returns the stanza type used to encapsulate the data.
100 * @return the stanza type used to encapsulate the data
103 return stanza;
    [all...]
  /external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/provider/
OpenIQProvider.java 33 String stanzaValue = parser.getAttributeValue("", "stanza");
34 StanzaType stanza = null; local
36 stanza = StanzaType.IQ;
39 stanza = StanzaType.valueOf(stanzaValue.toUpperCase());
42 return new Open(sessionID, blockSize, stanza);
  /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...]
SASLFacebookConnect.java 51 final StringBuilder stanza = new StringBuilder(); local
52 stanza.append("<auth mechanism=\"").append(getName());
53 stanza.append("\" xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
54 stanza.append("</auth>");
61 return stanza.toString();
105 // Build the challenge response stanza encoding the response text
106 final StringBuilder stanza = new StringBuilder(); local
150 stanza.append("<response xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
151 stanza.append(authenticationText);
152 stanza.append("</response>")
    [all...]
  /external/chromium_org/remoting/webapp/
wcs_sandbox_container.js 71 * @param {?function(string):void} onIq Callback invoked when an IQ stanza is
118 * @param {string} stanza The IQ stanza to send.
121 remoting.WcsSandboxContainer.prototype.sendIq = function(stanza) {
124 'stanza': stanza
164 var stanza = event.data['stanza'];
165 if (stanza === undefined) {
166 console.error('onIq: missing IQ stanza');
    [all...]
wcs_sandbox_content.js 57 var stanza = event.data['stanza'];
58 if (stanza === undefined) {
59 console.error('sendIq: missing IQ stanza.');
63 remoting.wcs.sendIq(stanza);
65 console.error('Dropping IQ stanza:', stanza);
194 * Callback to indicate than an IQ stanza has been received from the WCS
197 * @param {string} stanza
200 remoting.WcsSandboxContent.prototype.onIq_ = function(stanza) {
    [all...]
  /external/chromium_org/third_party/libjingle/source/talk/p2p/base/
sessionmessages.h 69 // Abstraction of a <jingle> element within an <iq> stanza, per XMPP
76 SessionMessage() : action_elem(NULL), stanza(NULL) {}
81 action_elem(NULL), stanza(NULL) {}
95 const buzz::XmlElement* stanza; member in struct:cricket::SessionMessage
159 bool IsSessionMessage(const buzz::XmlElement* stanza);
160 bool ParseSessionMessage(const buzz::XmlElement* stanza,
170 buzz::XmlElement* stanza);
239 bool FindSessionRedirect(const buzz::XmlElement* stanza,

Completed in 568 milliseconds

1 2