moonbridge

diff reference.txt @ 313:334ea1f13b0b

Modified non-blocking I/O _call functions to pass certain arguments (socket, mode, module) to wait function
author jbe
date Thu Feb 01 19:13:25 2018 +0100 (2018-02-01)
parents ce109800ae2d
children 1b459e9c12c9
line diff
     1.1 --- a/reference.txt	Sat Jan 27 17:54:00 2018 +0100
     1.2 +++ b/reference.txt	Thu Feb 01 19:13:25 2018 +0100
     1.3 @@ -84,8 +84,8 @@
     1.4  
     1.5  ### socket:drain_call(waitfunc, maxlen, terminator)
     1.6  
     1.7 -Same as socket:drain(maxlen, terminator), but calls waitfunc() (in an infinite
     1.8 -loop) as long as the reading is blocked.
     1.9 +Same as socket:drain(maxlen, terminator), but calls waitfunc(socket, "r",
    1.10 +moonbridge_io) (in an infinite loop) as long as the reading is blocked.
    1.11  
    1.12  
    1.13  ### socket:drain_nb(maxlen, terminator)
    1.14 @@ -126,8 +126,8 @@
    1.15  
    1.16  ### socket:flush_call(waitfunc, ...)
    1.17  
    1.18 -Same as socket:flush(...), but calls waitfunc() (in an infinite loop) as long
    1.19 -as the writing is blocked.
    1.20 +Same as socket:flush(...), but calls waitfunc(socket, "w", moonbridge_io) (in
    1.21 +an infinite loop) as long as the writing is blocked.
    1.22  
    1.23  
    1.24  ### socket:flush_nb(...)
    1.25 @@ -192,8 +192,8 @@
    1.26  
    1.27  ### socket:read_call(waitfunc, maxlen, terminator)
    1.28  
    1.29 -Same as socket:read(maxlen, terminator), but calls waitfunc() (in an infinite
    1.30 -loop) as long as the reading is blocked.
    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  
    1.34  
    1.35  ### socket:read_nb(maxlen, terminator)
    1.36 @@ -262,8 +262,8 @@
    1.37  
    1.38  ### socket:write_call(waitfunc, ...)
    1.39  
    1.40 -Same as socket:write(...), but calls waitfunc() (in an infinite loop) as long
    1.41 -as the writing is blocked.
    1.42 +Same as socket:write(...), but calls waitfunc(socket, "w", moonbridge_io) (in
    1.43 +an infinite loop) as long as the writing is blocked.
    1.44  
    1.45  
    1.46  ### socket:write_nb(...)

Impressum / About Us