Yate
|
RefObject holding a Socket pointer. More...
#include <yateclass.h>
Public Member Functions | |
SocketRef (Socket **socket) | |
SocketRef (Socket *&socket) | |
virtual void * | getObject (const String &name) const |
![]() | |
RefObject () | |
virtual | ~RefObject () |
virtual bool | alive () const |
bool | ref () |
bool | deref () |
int | refcount () const |
virtual void | destruct () |
![]() | |
GenObject () | |
virtual | ~GenObject () |
virtual const String & | toString () const |
virtual const String & | traceId () const |
NamedCounter * | getObjCounter () const |
NamedCounter * | setObjCounter (NamedCounter *counter) |
Additional Inherited Members | |
![]() | |
static bool | alive (const RefObject *obj) |
static bool | efficientIncDec () |
![]() | |
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 () |
![]() | |
virtual void | zeroRefs () |
bool | resurrect () |
virtual void | destroyed () |
RefObject holding a Socket pointer.
Helper class for insering a Socket pointer as a RefObject in a Message
Constructor from pointer
socket | Pointer to the Socket* to hold |
Constructor from reference
socket | Reference to the Socket* to hold |
|
inlinevirtual |
Get a pointer to a derived class given that class name
name | Name of the class we are asking for |
Reimplemented from RefObject.
References RefObject::getObject(), and TelEngine::YATOM().