# HG changeset patch # User jbe # Date 1435018301 -7200 # Node ID 6c02564342fe87b12fd42cf3b62f94863305b525 # Parent e53da349fd8f4d0cedd2b324f325598098abde9a Minor fixes/improvements for reference diff -r e53da349fd8f -r 6c02564342fe reference.txt --- a/reference.txt Tue Jun 23 02:10:59 2015 +0200 +++ b/reference.txt Tue Jun 23 02:11:41 2015 +0200 @@ -311,7 +311,7 @@ - :wait_yield() Use :kill(signal) to terminate the process with the given signal (defaults to -SIGTERM). +15 for SIGTERM). The :wait() method will wait for the process to terminate and return its exit code. If the process was terminated by a signal, a negative integer is returned @@ -355,10 +355,10 @@ is deleted automatically before being re-created. In case of an I/O error, nil (as first return value) plus an error message (as -second return value) may be returned.On success, a listener object is returned +second return value) may be returned. On success, a listener object is returned which supports the methods :accept(), :accept_nb(), and :close(). -The method :accept() blocks until a new incoming connection is available in +The method :accept() blocks until a new incoming connection is available, in which case a socket object is returned. The method :accept_nb() works like :accept(), except that the call is @@ -379,7 +379,8 @@ This function waits for at least one of the given file descriptors and/or I/O handles to be ready for input or output. The two sets of file descriptors and/or handles must contain the file descriptor or handle as a key, and a value -which does evaluate to true. If a set is nil, it is treated as being empty. +which does evaluate to true, e.g. input_set = {[socketA] = true}. If a set is +nil, it is treated as being empty. Returns true when at least one file descriptor or handle is ready for reading or writing respectively. Returns false (plus a notice as second return value) @@ -424,11 +425,11 @@ HTTP module ----------- -The http module exports the function http.generate_handler(callback) that -converts an HTTP handler to a "connect" handler. See file "example.lua" for an -example of invocation. A table with options may be passed either as a second -argument, or as a first argument preceeding the callback function (whichever is -more convenient). +The HTTP module exports the function moonbridge_http.generate_handler(callback) +that converts an HTTP handler to a "connect" handler. See file "example.lua" +for an example of invocation. A table with options may be passed either as a +second argument, or as a first argument preceeding the callback function +(whichever is more convenient). The following options are supported: