Yate
|
A cluster stream. More...
#include <yatejabber.h>
Public Member Functions | |
JBClusterStream (JBEngine *engine, Socket *socket) | |
JBClusterStream (JBEngine *engine, const JabberID &local, const JabberID &remote, const NamedList *params=0) | |
virtual JBClusterStream * | clusterStream () |
Protected Member Functions | |
virtual XmlElement * | buildStreamStart () |
virtual bool | processStart (const XmlElement *xml, const JabberID &from, const JabberID &to) |
virtual bool | processRunning (XmlElement *xml, const JabberID &from, const JabberID &to) |
Friends | |
class | JBStream |
A cluster stream.
This class holds a cluster stream
JBClusterStream | ( | JBEngine * | engine, |
Socket * | socket | ||
) |
Constructor. Build an incoming stream from a socket
engine | Engine owning this stream |
socket | The socket |
JBClusterStream | ( | JBEngine * | engine, |
const JabberID & | local, | ||
const JabberID & | remote, | ||
const NamedList * | params = 0 |
||
) |
Constructor. Build an outgoing stream
engine | Engine owning this stream |
local | Local party jabber id |
remote | Remote party jabber id |
params | Optional stream parameters |
virtual XmlElement* buildStreamStart | ( | ) | [protected, virtual] |
virtual JBClusterStream* clusterStream | ( | ) | [inline, virtual] |
virtual bool processRunning | ( | XmlElement * | xml, |
const JabberID & | from, | ||
const JabberID & | to | ||
) | [protected, virtual] |
Process elements in Running state
xml | Received element (will be consumed) |
from | Already parsed source JID |
to | Already parsed destination JID |
Reimplemented from JBStream.
virtual bool processStart | ( | const XmlElement * | xml, |
const JabberID & | from, | ||
const JabberID & | to | ||
) | [protected, virtual] |
Process stream start elements while waiting for them
xml | Received xml element |
from | The 'from' attribute |
to | The 'to' attribute |
Reimplemented from JBStream.