pcappp Namespace Reference


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

PcapLiveoperator<< (PcapLive &pcap, Packet const &packet)
Pcapoperator>> (Pcap &p, Packet &packet)

Variables

std::string STD_INPUT = "-"


Function Documentation

PcapLive& pcappp::operator<< ( PcapLive &  pcap,
Packet const &  packet 
)

Parameters:
pcap The PcapLive object
packet The Packet to be sent
Exceptions:
PcapError 

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

Exceptions:
PcapError 


Variable Documentation

std::string pcappp::STD_INPUT = "-"


Generated on Tue Apr 15 17:36:29 2008 for libpcap++ by  doxygen 1.5.5