stop 2

stop() Instance Public methods Stop the server

start

start(maxConnections = -1) Instance Public methods Start the server if it isn't already running maxConnections override maxConnections given to the constructor. A negative value indicates that the value from the constructor should be used.

shutdown

shutdown() Instance Public methods Schedule a shutdown for the server

serve

serve(io) Instance Public methods

join

join() Instance Public methods Join with the server thread

connections

connections() Instance Public methods Return the current number of connected clients

stop

stop(port, host = DEFAULT_HOST) Class Public methods Stop the server running on the given port, bound to the given host port port, as a FixNum, of the server to stop host host on which to find the server to stop

new

new(port, host = DEFAULT_HOST, maxConnections = 4, stdlog = $stderr, audit = false, debug = false) Class Public methods Create a new server port the port, as a FixNum, on which to listen host the host to bind to maxConnections the maximum number of simultaneous connections to accept stdlog IO device on which to log messages audit if true, lifecycle callbacks will be called. See audit debug if true, error messages are logged. See debug

in_service?

in_service?(port, host = DEFAULT_HOST) Class Public methods Check if a server is running on the given port and host port port, as a FixNum, of the server to check host host on which to find the server to check Returns true if a server is running on that port and host.

slaves

slaves(master, keys=nil) Class Public methods