Google Talk for Developers

SessionSendTask Class

An XMPP helper task object used by SessionManagerTask to send XMPP stanzas. SessionSendTask is used to send and receive once only; calling Send a second time before the first reply is received will reset it to listen for the new stanza. This object is destroyed when the reply is received. The methods shown are not thread-safe, and can be called on any thread, but you should call them from the signaling thread.

Syntax

class SessionSendTask : public buzz::XmppTask 

Methods

The following table lists the key public methods of SessionSendTask.

Name Description
void Start() Call this method after calling Send to send the stanza.
void Send(const buzz::XmlElement *stanza) Call this method to specify the outgoing stanza. After calling this method, call Start to send the stanza.
SessionSendTask(Task *parent, SessionClient *session_client) Constructor that specifies which object will be notified when the reply to the sent stanza is received.

 

Attributes: public

Declaration file: talk/p2p/client/sessionmanagertask.h

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.