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

Method detach

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

detach() -> file descriptor Close the socket object without closing the underlying file descriptor. The object cannot be used after this call, but the file descriptor can be reused for other purposes. The file descriptor is returned.

(self)

Source from the content-addressed store, hash-verified

503 self._real_close()
504
505 def detach(self):
506 """detach() -> file descriptor
507
508 Close the socket object without closing the underlying file descriptor.
509 The object cannot be used after this call, but the file descriptor
510 can be reused for other purposes. The file descriptor is returned.
511 """
512 self._closed = True
513 return super().detach()
514
515 @property
516 def family(self):

Callers 2

_createMethod · 0.45
socketpairFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected