register(thread, time, exception) Instance Public methods Registers a new timeout handler time Timeout in seconds exception Exception to raise when timeout elapsed
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.
create_self_signed_cert(bits, cn, comment) Class Public methods Creates a self-signed certificate with the given number of bits, the issuer cn and a comment to be stored in the certificate.
getservername() Class Public methods The server hostname
random_string(len) Class Public methods Generates a random string of length len
set_close_on_exec(io) Class Public methods Sets the close on exec flag for io
set_non_blocking(io) Class Public methods Sets IO operations on io to be non-blocking
su(user) Class Public methods Changes the process's uid and gid to the ones of user
timeout(seconds, exception=Timeout::Error) Class Public methods Executes the passed block and raises exception if execution takes more than seconds. If seconds is zero or nil, simply executes the block
CloseKey(hkey) Instance Public methods
Page 1871 of 11844