コード例 #1
0
ファイル: static.py プロジェクト: Paulxia/PacketManipulator
    def _write_packet(self, packet):
        PcapWriter._write_packet(self, packet)

        self.packet_idx += 1

        if self.packet_idx % 10 == 0:
            self.update_operation()
コード例 #2
0
    def _write_packet(self, packet):
        PcapWriter._write_packet(self, packet)

        self.packet_idx += 1

        if self.packet_idx % 10 == 0:
            self.update_operation()
コード例 #3
0
ファイル: static.py プロジェクト: Paulxia/PacketManipulator
    def __init__(self, operation, plen, filename, *args, **kargs):
        self.operation = operation

        self.packet_len = plen
        self.packet_idx = 0

        PcapWriter.__init__(self, filename, *args, **kargs)
コード例 #4
0
    def __init__(self, operation, plen, filename, *args, **kargs):
        self.operation = operation

        self.packet_len = plen
        self.packet_idx = 0

        PcapWriter.__init__(self, filename, *args, **kargs)