©2009 Google -
Code Home -
Terms of Service -
Privacy Policy -
Site Directory
Google Code offered in:
English -
Español -
日本語 -
한국어 -
Português -
Pусский -
中文(简体) -
中文(繁體)
A top-level manager class for the XMPP Messaging Component. This class creates an XmppClient object and handles signing in to a server for you. See Signing In To a Server for sample code using this.
class XmppPump : public cricket::MessageHandler,
public buzz::TaskRunner
| Name | Description |
|---|---|
| XmppPump(XmppPumpNotify * notify) | Constructor.
|
| buzz::XmppClient *client() | Returns the internal XmppClient member. |
| void DoLogin(const buzz::XmppClientSettings & xcs, buzz::AsyncSocket* socket, buzz::PreXmppAuth* auth); | Starts asynchronous sign in to the server specified. You must
catch the XmppClient::SignalStateChange signal
to track progress.
|
| void DoDisconnect(); | Disconnects from the server and sends notifications on the progress, similar to DoLogin. |
| void OnStateChange(buzz::XmppEngine::State state); | Called with notifications about the progress of the sign-in attempt. You can override this method if extending this class. |
| void WakeTasks(); | Called internally. |
| int64 CurrentTime(); | Called internally. |
| void OnMessage(cricket::Message *pmsg); | Called internally with asynchronous messages. |
| buzz::XmppReturnStatus SendStanza(const buzz::XmlElement *stanza); | Sends a stanza out through the XmppClient member. |
Attributes: public
Declaration file: talk/examples/login/xmpppump.h