From c1eacfa6d24dc15476f5f9befa8370e2244931d4 Mon Sep 17 00:00:00 2001
From: Thijs Schreijer
Note: select can monitor a limited number
-of sockets, as defined by the constant socket._SETSIZE. This
+of sockets, as defined by the constant
+socket._SETSIZE. This
number may be as high as 1024 or as low as 64 by default,
depending on the system. It is usually possible to change this
at compile time. Invoking select with a larger
@@ -410,7 +411,8 @@ socket._SOCKETINVALID
-The OS value for an invalid socket.
+The OS value for an invalid socket. This can be used with
+tcp:getfd and tcp:setfd methods.
-The descriptor or handle. In case the object has been closed, the return will be -1. +The descriptor or handle. In case the object has been closed, the return value +will be -1. For an invalid socket it will be +_SOCKETINVALID.
@@ -611,7 +613,9 @@ server:setfd(fd)
-Sets the underling socket descriptor or handle associated to the object. The current one is simply replaced, not closed, and no other change to the object state is made. +Sets the underling socket descriptor or handle associated to the object. The current one +is simply replaced, not closed, and no other change to the object state is made. +To set it as invalid use _SOCKETINVALID.
-- cgit v1.2.3-55-g6feb