Hi,

In message "Overriding TCPServer.accept"
    on 02/05/23, Farrel Lifson <flifson / cs.uct.ac.za> writes:

|If I have a class SIPSocket that inherits from TCPSocket and SIPServer
|that inherits from TCPServer. I'd like SIPServer.accept to return a
|SIPSocket instead of a TCPSocket. Unfortunately TCPServer and TCPSocket
|are binary object libs and so I have to do something like this:
|
|class SIPServer < TCPServer
|...
|  def accept
|    SIPSocket.create(super)
|  end
|...
|end

In the latest CVS, there's TCPServer#sysaccept which returns a raw
socket descriptor, so that you can write

  def accept
    SIPSocket.for_fd(self.sysaccept)
  end

in the future.  Thank you for inspiring me.

							matz.