MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / close

Method close

tools/python-3.11.9-amd64/Lib/socket.py:769–777  ·  view source on GitHub ↗

Close the SocketIO object. This doesn't close the underlying socket, except if all references to it have disappeared.

(self)

Source from the content-addressed store, hash-verified

767 return self._mode
768
769 def close(self):
770 """Close the SocketIO object. This doesn't close the underlying
771 socket, except if all references to it have disappeared.
772 """
773 if self.closed:
774 return
775 io.RawIOBase.close(self)
776 self._sock._decref_socketios()
777 self._sock = None
778
779
780def getfqdn(name=''):

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
_decref_socketiosMethod · 0.45

Tested by

no test coverage detected