# File lib/rumai/ixp/transport.rb, line 16
      def initialize aStream
        @stream    = aStream
        @sendLock  = Mutex.new
        @recvLock  = Mutex.new

        @responses = {} # tag => message
        @tagPool   = RangedPool.new(0...BYTE2_MASK)

        @fidPool   = RangedPool.new(0...BYTE4_MASK)
        @msize     = Tversion::MSIZE

        # establish connection with 9P2000 server
        req = Tversion.new(
          :tag     => Fcall::NOTAG,
          :msize   => Tversion::MSIZE,
          :version => Tversion::VERSION
        )
        rsp = talk(req)

        unless req.version == rsp.version
          raise Error, "protocol mismatch: self=#{req.version.inspect} server=#{rsp.version.inspect}"
        end

        @msize = rsp.msize

        # authenticate the connection (not necessary for wmii)
        @authFid = Fcall::NOFID

        # attach to filesystem root
        @rootFid = @fidPool.obtain
        attach @rootFid, @authFid
      end