moonbridge
diff reference.txt @ 99:c9ffbdac1337
New function moonbridge_io.tcpconnect_nb(...) for nonblocking connects
author | jbe |
---|---|
date | Wed Apr 08 04:22:03 2015 +0200 (2015-04-08) |
parents | acaa85256c4b |
children | 51ff6ad11677 |
line diff
1.1 --- a/reference.txt Wed Apr 08 04:00:41 2015 +0200 1.2 +++ b/reference.txt Wed Apr 08 04:22:03 2015 +0200 1.3 @@ -243,6 +243,16 @@ 1.4 plus an error message (as second return value) in case of error. 1.5 1.6 1.7 +### moonbridge_io.tcpconnect_nb(hostname, port) 1.8 + 1.9 +Same as moonbridge_io.tcpconnect(hostname, port), except that this function 1.10 +does not block and immediately returns a socket object. 1.11 + 1.12 +In case of an I/O error, nil (as first return value) plus an error message (as 1.13 +second result value) may be returned. However, connection errors may also be 1.14 +reported on first read or write on the socket. 1.15 + 1.16 + 1.17 1.18 HTTP module 1.19 -----------