moonbridge

diff reference.txt @ 314:1b459e9c12c9

Added parameter to waitfunc of asynchronous I/O functions which allows to check whether waitfunc was called for the first time
author jbe
date Thu Feb 01 20:26:30 2018 +0100 (2018-02-01)
parents 334ea1f13b0b
children 15132b3c053d
line diff
     1.1 --- a/reference.txt	Thu Feb 01 19:13:25 2018 +0100
     1.2 +++ b/reference.txt	Thu Feb 01 20:26:30 2018 +0100
     1.3 @@ -84,8 +84,9 @@
     1.4  
     1.5  ### socket:drain_call(waitfunc, maxlen, terminator)
     1.6  
     1.7 -Same as socket:drain(maxlen, terminator), but calls waitfunc(socket, "r",
     1.8 -moonbridge_io) (in an infinite loop) as long as the reading is blocked.
     1.9 +Same as socket:drain(maxlen, terminator), but calls waitfunc(socket, "r", first
    1.10 +moonbridge_io) (in an infinite loop, first=true only on first call) as long as
    1.11 +the reading is blocked.
    1.12  
    1.13  
    1.14  ### socket:drain_nb(maxlen, terminator)
    1.15 @@ -126,8 +127,9 @@
    1.16  
    1.17  ### socket:flush_call(waitfunc, ...)
    1.18  
    1.19 -Same as socket:flush(...), but calls waitfunc(socket, "w", moonbridge_io) (in
    1.20 -an infinite loop) as long as the writing is blocked.
    1.21 +Same as socket:flush(...), but calls waitfunc(socket, "w", first,
    1.22 +moonbridge_io) (in an infinite loop, first=true only on first call) as long as
    1.23 +the writing is blocked.
    1.24  
    1.25  
    1.26  ### socket:flush_nb(...)
    1.27 @@ -192,8 +194,9 @@
    1.28  
    1.29  ### socket:read_call(waitfunc, maxlen, terminator)
    1.30  
    1.31 -Same as socket:read(maxlen, terminator), but calls waitfunc(socket, "r",
    1.32 -moonbridge_io) (in an infinite loop) as long as the reading is blocked.
    1.33 +Same as socket:read(maxlen, terminator), but calls waitfunc(socket, "r", first,
    1.34 +moonbridge_io) (in an infinite loop, first=true only on first call) as long as
    1.35 +the reading is blocked.
    1.36  
    1.37  
    1.38  ### socket:read_nb(maxlen, terminator)
    1.39 @@ -262,8 +265,9 @@
    1.40  
    1.41  ### socket:write_call(waitfunc, ...)
    1.42  
    1.43 -Same as socket:write(...), but calls waitfunc(socket, "w", moonbridge_io) (in
    1.44 -an infinite loop) as long as the writing is blocked.
    1.45 +Same as socket:write(...), but calls waitfunc(socket, "w", first,
    1.46 +moonbridge_io) (in an infinite loop, first=true only on first call) as long as
    1.47 +the writing is blocked.
    1.48  
    1.49  
    1.50  ### socket:write_nb(...)

Impressum / About Us