|
Yate
|
A Jabber client engine. More...
#include <yatejabber.h>
Protected Member Functions | |
| virtual void | addStream (JBStream *stream) |
| virtual void | removeStream (JBStream *stream, bool delObj=true) |
| virtual void | stopStreamSets (bool waitTerminate=true) |
Protected Member Functions inherited from JBEngine | |
| void | getStreamLists (RefPointer< JBStreamSetList > list[JBStream::TypeCount], int type=JBStream::TypeCount) |
| JBStream * | findStream (const String &id, JBStreamSetList *list) |
Protected Member Functions inherited from DebugEnabler | |
| void | debugName (const char *name) |
Protected Attributes | |
| JBStreamSetList * | m_receive |
| JBStreamSetList * | m_process |
Protected Attributes inherited from JBEngine | |
| bool | m_exiting |
| JBRemoteDomainDef | m_remoteDomain |
| ObjList | m_remoteDomains |
| unsigned char | m_restartMax |
| unsigned int | m_restartUpdInterval |
| unsigned int | m_setupTimeout |
| unsigned int | m_startTimeout |
| unsigned int | m_connectTimeout |
| unsigned int | m_srvTimeout |
| unsigned int | m_pingInterval |
| unsigned int | m_pingTimeout |
| unsigned int | m_idleTimeout |
| unsigned int | m_pptTimeoutC2s |
| unsigned int | m_pptTimeout |
| unsigned int | m_streamReadBuffer |
| unsigned int | m_maxIncompleteXml |
| unsigned int | m_redirectMax |
| bool | m_hasClientTls |
| int | m_printXml |
| bool | m_initialized |
Additional Inherited Members | |
Static Public Member Functions inherited from Mutex | |
| static int | count () |
| static int | locks () |
| static bool | efficientTimedLock () |
Static Public Member Functions inherited from Lockable | |
| static void | wait (unsigned long maxwait) |
| static unsigned long | wait () |
| static void | startUsingNow () |
| static void | enableSafety (bool safe=true) |
| static bool | safety () |
Static Public Member Functions inherited from GenObject | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
A Jabber client engine.
This class implements a Jabber client engine
| JBClientEngine | ( | const char * | name = "jbclientengine" | ) |
Constructor
| name | Engine name |
| ~JBClientEngine | ( | ) |
Destructor
Add a stream to one of the stream lists
| stream | The stream to add |
Reimplemented from JBEngine.
Terminate all streams. Stop all sets processors. Release memory if final
| final | True if called from destructor |
| waitTerminate | True to wait for all streams to terminate |
Reimplemented from JBEngine.
| JBClientStream * create | ( | const String & | account, |
| const NamedList & | params, | ||
| const String & | name = String::empty() |
||
| ) |
Build an outgoing client stream
| account | Account name |
| params | Stream parameters |
| name | Optional stream name |
| JBClientStream * findAccount | ( | const String & | account | ) |
Find a stream by account
| account | Account name |
|
virtual |
Remove a stream
| stream | The stream to remove |
| delObj | True to release the stream, false to remove it from list without releasing it |
Reimplemented from JBEngine.
Stop all stream sets
| waitTerminate | True to wait for all streams to terminate |
Reimplemented from JBEngine.