sysaccept

tcpserver.sysaccept => file_descriptor
Instance Public methods

Returns a file descriptor of a accepted connection.

TCPServer.open("127.0.0.1", 28561) {|serv|
  fd = serv.sysaccept
  s = IO.for_fd(fd)
  s.puts Time.now
  s.close
}
doc_ruby_on_rails
2015-05-17 06:54:38
Comments
Leave a Comment

Please login to continue.