Module pcap :: Class pcap_dumper
[hide private]
[frames] | no frames]

Class pcap_dumper

object --+
         |
        pcap_dumper

pcap_dumper object is a wrapper for the type `pcap_dumper_t' defined in PCAP library. Its methods are all PCAP library functions with prototype `type pcap_func(pcap_dumper_t *,...)'. Method names are functions names without `pcap_' prefix.

Note: pcap_dumper object cannot be created directly. The only way to create such object is to use the `dump_open()' method of a pcap object instance.

Instance Methods [hide private]
a new object with type S, a subtype of T
__new__(T, S, ...)
file object
dump_file()
dump_file() return the file object associated to standard I/O stream for a savefile being written.
None
dump_flush()
dump_flush() flush to a savefile packets dumped.
long
dump_ftell()
dump_ftell() get the current file offset for a savefile being written.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

dump_file()

 

dump_file() return the file object associated to standard I/O stream for a savefile being written. It is a wrapper for pcap_dump_file() Packet Capture library routine.

Returns: file object

dump_flush()

 

dump_flush() flush to a savefile packets dumped. It is a wrapper for pcap_dump_flush() Packet Capture library routine.

Returns: None

dump_ftell()

 

dump_ftell() get the current file offset for a savefile being written. It is a wrapper for pcap_dump_ftell() Packet Capture library routine.

Returns: long