|
Yate
|
A socket connector. More...
#include <yatejabber.h>
Public Types | |
| enum | Status { Start = 0 , Address , Srv , Domain } |
Public Member Functions | |
| JBConnect (const JBStream &stream) | |
| virtual | ~JBConnect () |
| virtual void | stopConnect () |
| virtual const String & | toString () const |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual bool | alive () const |
| virtual void | destruct () |
| virtual const String & | traceId () const |
| virtual void * | getObject (const String &name) const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Static Public Attributes | |
| static const TokenDict | s_statusName [] |
Protected Member Functions | |
| void | connect () |
Additional Inherited Members | |
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 socket connector.
This class holds data used to connect an outgoing stream A descendant class should implement the thread run method
Constructor. Add itself to the stream's engine
| stream | The stream to connect |
Referenced by connect().
|
virtual |
Destructor. Remove from engine if still there
|
protected |
Connect the socket. Retrieve ip/port from engine ant use them if valid or try to use SRV records returned by the given domain or use the domain's ip address and the default port given by the stream type. Notify the stream on termination. This method should be called from it's own thread
References JBConnect().
|
virtual |
Stop the thread. This method should be re-implemented
|
virtual |
|
static |
Status name dictionary