/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/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/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/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/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...] |
/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,
|
/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);
|