Yate
|
Packet capture class. More...
#include <yateclass.h>
Public Member Functions | |
Capture (const char *name) | |
virtual bool | initialize (const NamedList ¶ms)=0 |
virtual bool | write (const uint8_t *data, unsigned int len, const CaptureInfo &info)=0 |
virtual bool | valid () const =0 |
virtual const String & | name () const |
![]() | |
RefObject () | |
virtual | ~RefObject () |
virtual void * | getObject (const String &name) const |
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 () |
Packet capture class.
Capture class allows implementing capturing of packets
|
inline |
Constructor
name | Name of capture |
|
pure virtual |
Initialize this capture
params | Parameters for initializing this capture |
|
inlinevirtual |
Get the name of the capture
|
pure virtual |
Check if capture is still valid
|
pure virtual |
Write to capture a packet
data | Packet data |
len | Length of packet data |
info | Captured packet associated information |