|
Yate
|
Data associated with a captured packet. More...
#include <yateclass.h>
Public Member Functions | |
| CaptureInfo (uint64_t ts=Time::now(), SocketAddr *srcAddr=0, SocketAddr *dstAddr=0, const NamedList &extra=NamedList::empty()) | |
| SocketAddr * | srcAddr () const |
| SocketAddr * | dstAddr () const |
| const NamedList & | extraInfo () const |
| uint64_t | ts () const |
| uint16_t | srcPort () const |
| uint16_t | dstPort () const |
Data associated with a captured packet.
CaptureInfo class allows passing information about a captured packet
|
inline |
Constructor
| ts | Timestamp when packet was captures/created in microseconds |
| srcAddr | Source address of the packet |
| dstAddr | Destination address of the packet |
| extra | Extra parameters |
References dstAddr(), NamedList::empty(), Time::now(), srcAddr(), and ts().
|
inline |
Retrieve the destination address of this packet
Referenced by CaptureInfo(), and dstPort().
|
inline |
Destination port of this packet
References dstAddr().
|
inline |
Get the extra information parameters
|
inline |
Retrieve the source address
Referenced by CaptureInfo(), and srcPort().
|
inline |
|
inline |
Timestamp in microseconds when this packet was captured
Referenced by CaptureInfo().