<--previous | contents | next-->

Offline

The Offline class is used to read packets from a file.

Interace

Offline(filename)

The Offline class is instantiated with a single parameter: the name of the file to be read.

lookupnet()

Returns a (net, mask) tuple. In the case of the Offline class, both elements of the tuple are always 0.

is_swapped()

Is the byte order of the system this file was captured on different from that of the current system?

version()

Returns a tupe (major, minor) indicating the major and minor versions of the pcap used to save the file.

fileno()

Returns the file number for the open dump file.


<--previous | contents | next--> (12/21/04)
PyOpenbsd v0.1 Manual