Hi,

At Wed, 10 Sep 2003 05:46:37 +0900,
gabriele renzi wrote:
> But now I'd like to use a MySocket even when I'm receiving
> connections.
> BTW, TCPServer.accept just gives me a classic vanilla TCPSocket.

In 1.7 or later:

  class MyServer < TCPServer
    def accept
      MySocket.for_fd(sysaccept)
    end
  end

Note that this is not exception safe.  It might leak file
descriptors.

-- 
Nobu Nakada