A remote function call (fcall).

Methods
#
F
T
Included Modules
Constants
NOTAG = BYTE2_MASK # (ushort)
NOFID = BYTE4_MASK # (uint32)
CLASS_TO_TYPE = { Tversion => 100, Rversion => 101, Tauth => 102, Rauth => 103, Tattach => 104, Rattach => 105, Terror => 106, Rerror => 107, Tflush => 108, Rflush => 109, Twalk => 110, Rwalk => 111, Topen => 112, Ropen => 113, Tcreate => 114, Rcreate => 115, Tread => 116, Rread => 117, Twrite => 118, Rwrite => 119, Tclunk => 120, Rclunk => 121, Tremove => 122, Rremove => 123, Tstat => 124, Rstat => 125, Twstat => 126, Rwstat => 127, }.freeze
TYPE_TO_CLASS = CLASS_TO_TYPE.invert.freeze
Class Public methods
__from_9p__(stream)

Alias for from_9p

from_9p(stream)

Creates a new instance of this class from the given 9P2000 byte stream and returns the instance.

This method is also aliased as __from_9p__
# File lib/rumai/ixp/message.rb, line 417
        def from_9p stream
          size = stream.read_9p(4)
          type = stream.read_9p(1)

          unless fcall = TYPE_TO_CLASS[type]
            raise Error, "illegal fcall type: #{type}"
          end

          __from_9p__ stream, fcall
        end
type()

Returns the value of the ‘type’ field for this fcall.

# File lib/rumai/ixp/message.rb, line 654
      def self.type
        CLASS_TO_TYPE[self]
      end
Instance Public methods
to_9p()

Transforms this object into a string of 9P2000 bytes.

# File lib/rumai/ixp/message.rb, line 403
      def to_9p
        data = type.to_9p(1) << super
        size = (data.length + 4).to_9p(4)
        size << data
      end
type()

Returns the value of the ‘type’ field for this fcall.

# File lib/rumai/ixp/message.rb, line 661
      def type
        self.class.type
      end