moonbridge

diff reference.txt @ 106:8fce76ef321f

Added moonbridge_io.poll(...)
author jbe
date Wed Apr 08 20:38:18 2015 +0200 (2015-04-08)
parents 51ff6ad11677
children 0eba766e9be2
line diff
     1.1 --- a/reference.txt	Wed Apr 08 19:37:09 2015 +0200
     1.2 +++ b/reference.txt	Wed Apr 08 20:38:18 2015 +0200
     1.3 @@ -236,6 +236,19 @@
     1.4  library to support blocking as well as nonblocking I/O operations.
     1.5  
     1.6  
     1.7 +### moonbridge_io.poll(input_set, output_set, timeout)
     1.8 +
     1.9 +This function waits for at least one of the given file descriptors and/or
    1.10 +I/O handles to be ready for input or output. The two sets of file descriptors
    1.11 +and/or handles must contain the file descriptor or handle as a key, and a value
    1.12 +which does evaluate to true. If a set is nil, it is treated as being empty.
    1.13 +
    1.14 +Returns true when at least one file descriptor or handle is ready for reading
    1.15 +or writing respectively. Returns false (as first return value) plus a status
    1.16 +message (as second return value) in case of timeout or when a signal was
    1.17 +received.
    1.18 +
    1.19 +
    1.20  ### moonbridge_io.tcpconnect(hostname, port)
    1.21  
    1.22  Tries to open a TCP connection with the given host and TCP port number. Returns

Impressum / About Us