Flowdock
method

new

Importance_1
new(p1 = v1, p2) public

Creates a new server socket bound to port.

If hostname is given, the socket is bound to it.

serv = TCPServer.new("127.0.0.1", 28561)
s = serv.accept
s.puts Time.now
s.close
Show source
Register or log in to add new notes.