MCPcopy Index your code
hub / github.com/secdev/scapy / write

Method write

scapy/utils.py:2851–2862  ·  view source on GitHub ↗

Writes a Packet, a SndRcvList object, or bytes to a ERF file. :param pkt: Packet(s) to write (one record for each Packet) :type pkt: iterable[scapy.packet.Packet], scapy.packet.Packet

(self, pkt)

Source from the content-addressed store, hash-verified

2849 sync=sync)
2850
2851 def write(self, pkt): # type: ignore
2852 # type: (_PacketIterable) -> None
2853 """
2854 Writes a Packet, a SndRcvList object, or bytes to a ERF file.
2855
2856 :param pkt: Packet(s) to write (one record for each Packet)
2857 :type pkt: iterable[scapy.packet.Packet], scapy.packet.Packet
2858 """
2859 # Import here to avoid circular dependency
2860 from scapy.supersocket import IterSocket
2861 for p in IterSocket(pkt).iter:
2862 self.write_packet(p)
2863
2864 def write_packet(self, pkt): # type: ignore
2865 # type: (Packet) -> None

Callers 11

wrpcapFunction · 0.45
wrpcapngFunction · 0.45
_read_block_dsbMethod · 0.45
_write_headerMethod · 0.45
_write_packetMethod · 0.45
_write_block_shbMethod · 0.45
_write_block_idbMethod · 0.45
_write_block_spbMethod · 0.45
_write_block_epbMethod · 0.45
wrerfFunction · 0.45
write_packetMethod · 0.45

Calls 2

write_packetMethod · 0.95
IterSocketClass · 0.90

Tested by

no test coverage detected