Class Rumai::IXP::Fcall
In: lib/rumai/ixp/message.rb
Parent: Object

Fcall is the basic unit of communication in the 9P2000 protocol. It is analogous to a "packet" in the Internetwork Protocol (IP).

See cm.bell-labs.com/magic/man2html/2/fcall

Methods

from_9p   to_9p   type   type  

Included Modules

Struct

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

External Aliases

from_9p -> __from_9p__

Public Class methods

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

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

Public Instance methods

Transforms this object into a string of 9P2000 bytes.

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

[Validate]