TCPServer class of PicoRuby

Singleton methods

new

TCPServer.new(String? host, Integer service, ?Integer backlog) -> TCPServer

Instance methods

accept

instance.accept() -> TCPSocket

accept_loop

instance.accept_loop() { (TCPSocket) -> void } -> void

accept_nonblock

instance.accept_nonblock() -> (TCPSocket | nil)

close

instance.close() -> nil
Tags: class