diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2011-10-24 11:24:58 -0700 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-04-11 13:45:59 -0700 |
commit | 12bde801f6a5d3a192dee29dda1266108aa98d45 (patch) | |
tree | 64c6166ae6d968f10d260ec5172de0ac1d4e576a /doc/socket.html | |
parent | 3a0fd4744daa972e59579a753af2da9dbde36edd (diff) | |
download | luasocket-12bde801f6a5d3a192dee29dda1266108aa98d45.tar.gz luasocket-12bde801f6a5d3a192dee29dda1266108aa98d45.tar.bz2 luasocket-12bde801f6a5d3a192dee29dda1266108aa98d45.zip |
Document dirty, getfd, and setfd for select and tcp.
Diffstat (limited to 'doc/socket.html')
-rw-r--r-- | doc/socket.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/socket.html b/doc/socket.html index f096e4b..4d44f01 100644 --- a/doc/socket.html +++ b/doc/socket.html | |||
@@ -217,6 +217,10 @@ method or <tt>accept</tt> might block forever. | |||
217 | it to <tt>select</tt>, it will be ignored. | 217 | it to <tt>select</tt>, it will be ignored. |
218 | </p> | 218 | </p> |
219 | 219 | ||
220 | <p class=note> | ||
221 | <b>Using select with non-socket objects</b>: Any object that implements <tt>getfd</tt> and <tt>dirty</tt> can be used with <tt>select</tt>, allowing objects from other libraries to be used within a <tt>socket.select</tt> driven loop. | ||
222 | </p> | ||
223 | |||
220 | <!-- sink ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 224 | <!-- sink ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
221 | 225 | ||
222 | <p class=name id=sink> | 226 | <p class=name id=sink> |