Helper to log all emulated packet information. More...

#include <senf/Ext/NetEmu/Packets.hh>

Public Member Functions

 dumpPacketInfo (senf::Packet const &p)
 

Public Attributes

Packet packet
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &os, dumpPacketInfo const &info)
 

Detailed Description

Helper to log all emulated packet information.

This helper structure is used to log all information on an emulated network packet for debugging purposes

Packet p (...);
SENF_LOG(( "Got new packet:\n" << dumpPacketInfo(p) ));

Definition at line 100 of file Packets.hh.

Constructor & Destructor Documentation

◆ dumpPacketInfo()

senf::emu::dumpPacketInfo::dumpPacketInfo ( senf::Packet const &  p)
inline

Definition at line 102 of file Packets.hh.

Friends And Related Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
dumpPacketInfo const &  info 
)
related

Member Data Documentation

◆ packet

Packet senf::emu::dumpPacketInfo::packet

Definition at line 103 of file Packets.hh.


The documentation for this struct was generated from the following file: