Flowdock
accept() public

Accepts an incoming connection. It returns a new TCPSocket object.

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