Skip to content

Commit b278ac4

Browse files
committed
Add note about fileno not being usable as a normal file descriptor in Windows.
1 parent e0c1740 commit b278ac4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/lib/libsocket.tex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,10 @@ \subsection{Socket Objects \label{socket-objects}}
480480
\begin{methoddesc}[socket]{fileno}{}
481481
Return the socket's file descriptor (a small integer). This is useful
482482
with \function{select.select()}.
483+
484+
Under Windows the small integer returned by this method cannot be used where
485+
a file descriptor can be used (such as \function{os.fdopen()}). \UNIX{} does
486+
not have this limitation.
483487
\end{methoddesc}
484488

485489
\begin{methoddesc}[socket]{getpeername}{}

0 commit comments

Comments
 (0)