Enable frame/packet dumping to PCAP files. More...
#include <wipal/pcap/ostream.hh>
Public Member Functions | |
ostream (const std::string &filename, const pkt::type type, const int32_t zone=0, const int32_t snaplen=0) | |
template<class B > | |
ostream (const std::string &filename, const stream< B > &stream) | |
template<class S > | |
ostream (const std::string &filename, const list< S > &list) | |
ostream & | write (const pkt::metadata &meta, const void *bytes) |
template<class S > | |
ostream & | operator<< (const pkt::packet< S > &) |
template<class S > | |
ostream & | operator() (const pkt::packet< S > &) |
pcap::indexed_file | file () const |
Enable frame/packet dumping to PCAP files.
A pcap ostream allows you to dump packets to a file.