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

Method close

scapy/arch/libpcap.py:137–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

135 return select_objects(sockets, remain)
136
137 def close(self):
138 # type: () -> None
139 if self.closed:
140 return
141 self.closed = True
142 if hasattr(self, "pcap_fd"):
143 # If failed to open, won't exist
144 self.pcap_fd.close()
145
146
147##########

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected