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

Method close

scapy/automaton.py:242–253  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

240 self.recv()
241
242 def close(self):
243 # type: () -> None
244 if not self.closed:
245 self.closed = True
246 os.close(self.__rd)
247 os.close(self.__wr)
248 if WINDOWS:
249 try:
250 self._winclose()
251 except ImportError:
252 # Python is shutting down
253 pass
254
255 def __repr__(self):
256 # type: () -> str

Callers 6

__del__Method · 0.95
closeMethod · 0.45
_runMethod · 0.45
_do_controlMethod · 0.45
_do_iterMethod · 0.45
destroyMethod · 0.45

Calls 1

_wincloseMethod · 0.95

Tested by

no test coverage detected