Flowdock
method

sysaccept

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: TCPServer
sysaccept() public

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
}
Show source
Register or log in to add new notes.