ID EN
Socket

fileno

Python 3.11

Return the socket’s file descriptor (a small integer), or -1 on failure. This is useful with select.select().

Syntax

PYTHON
socket.fileno()

See Also

select.select() os.fdopen()