33 #ifndef PTLIB_PCAPFILE_H
34 #define PTLIB_PCAPFILE_H
42 #include <ptlib/sockets.h>
53 bool Open(
const PFilePath & filename);
56 void PrintOn(ostream & strm)
const;
59 int GetIP(PBYTEArray & payload);
60 int GetUDP(PBYTEArray & payload);
71 const PIPSocket::Address & ip
76 const PIPSocket::Address & ip
117 void PrintOn(ostream & strm)
const;
125 const PString & format = PString::Empty()
130 const PString & format = PString::Empty()
161 class Frame :
public PEthSocket::Frame {
167 PINDEX packetSize = P_MAX_INDEX
183 #endif // PTLIB_PCAPFILE_H