byteblowerll.byteblower.CaptureResultSnapshot

class byteblowerll.byteblower.CaptureResultSnapshot(*args, **kwargs)

This class represents the result of a CaptureRawpacket.

It contains the metrics and the frames that are captured. To get an update of the values use ::Refresh.

Example

from byteblowerll.byteblower import ByteBlower
server = ByteBlower.ServerAdd('byteblower-1.lab.byteblower.com')
server.PortCreate('trunk-1-1')
# TODO
__init__(*args, **kwargs)

Methods

ByteCountGet() Returns the number of bytes captured.
CaptureDurationGet() Returns the duration of the capture.
Clear() Clears the counters and deletes the captured packets from the capture.
DescriptionGet(*args) Gets a textual description for the current object
ErrorCountGet() Returns Error count.
FramesGet() Returns a list of CapturedFrameList.
FramesGetByIndex(index) Returns a Rx.Capture.Frame at the provided index.
PacketCountGet() Returns the number of packets captured.
ParentGet() Returns the parent object.
PcapLastFileNameGet() The fileName where the last pcap was saved to.
PcapNanoSave(filename) Stores the captured frames into a pcap file.
PcapSave(filename) Stores the captured frames into a pcap file.
Refresh() Retrieves the latest data from the server for this object.
RefreshTimestampGet() Returns the timestamp when the counters of this object where last refreshed.
StateNameGet() Returns the status of the current capture.
__init__(*args, **kwargs)