Socket::Listener - mfichman/jogo GitHub Wiki
Stream-oriented (TCP) server socket. This class is used to listen for socket connections from remote hosts.
@destroy()
Destroys the socket, and closes the listening port.
accept() Socket::Stream
Waits for a client to connect to the listening socket, and returns a new handle to the established stream. This call will block the current coroutine.
addr=(addr Socket::Addr)
Binds the socket to the given address. The socket may be rebound to new address by setting the addr field.
close()
Closes the listening socket.
reuse_addr=(flag Bool)
Set to true of enable the SO_REUSEADDR option.
@init()
No comment
handle?() Int
No comment
addr?() Socket::Addr
No comment
backlog=(_arg0 Int)
No comment
backlog?() Int
No comment
coroutine=(_arg0 Coroutine)
No comment
coroutine?() Coroutine
No comment