'@see:
L{twisted.internet.interfaces.IReactorSocket.adoptStreamConnection}'

def adoptStreamConnection(self, fileDescriptor, addressFamily, factory):

    if (addressFamily not in self._supportedAddressFamilies):
        raise error.UnsupportedAddressFamily(addressFamily)
    if (unixEnabled and (addressFamily == socket.AF_UNIX)):
        return unix.Server._fromConnectedSocket(fileDescriptor, factory, self)
    else:
        return tcp.Server._fromConnectedSocket(fileDescriptor, addressFamily, factory, self)
