create_listeners(address, port, logger=nil) Class Public methods Creates TCP server sockets bound to address:port and returns them. It will create IPV4 and IPV6 sockets on all interfaces.
register(thread, time, exception) Instance Public methods Registers a new timeout handler time Timeout in seconds exception Exception to raise when timeout elapsed
interrupt(thread, id, exception) Instance Public methods Interrupts the timeout handler id and raises exception
cancel(thread, id) Instance Public methods Cancels the timeout handler id
register(seconds, exception) Class Public methods Registers a new timeout handler time Timeout in seconds exception Exception to raise when timeout elapsed
new() Class Public methods Creates a new TimeoutHandler. You should use ::register and ::cancel instead of creating the timeout handler directly.
cancel(id) Class Public methods Cancels the timeout handler id
start() Class Public methods A SimpleServer only yields when you start it
log(level, data) Instance Public methods Same as WEBrick::BasicLog#log
new(log_file=nil, level=nil) Class Public methods Same as BasicLog#initialize You can set the timestamp format through time_format
Page 462 of 2275