ID EN
Socket

detach

Python 3.11

Put the socket object into closed state without actually closing the underlying file descriptor. The file descriptor is returned, and can be reused for other purposes.

Syntax

PYTHON
socket.detach()