Classes | |
class | Address |
class | DataLink |
class | Device |
class | Dumper |
class | DumperClosed |
class | Exception |
class | Packet |
class | Pcap |
class | PcapError |
class | PcapLive |
class | PcapOffline |
class | Stats |
Functions | |
PcapLive & | operator<< (PcapLive &pcap, Packet const &packet) |
Pcap & | operator>> (Pcap &p, Packet &packet) |
Variables | |
std::string | STD_INPUT = "-" |
PcapLive& pcappp::operator<< | ( | PcapLive & | pcap, | |
Packet const & | packet | |||
) |
Pcap& pcappp::operator>> | ( | Pcap & | p, | |
Packet & | packet | |||
) |
In PcapLive, the read may fail if the timeout expires before any packet is captured. In PcapOffline, the read may if the end-of-file of the savefile is reached.
In both cases, a flag is set in the Pcap so that ok() and the operator bool() return false. This flag is cleared upon each successful read
PcapError |
std::string pcappp::STD_INPUT = "-" |