Class Rumai::IXP::Agent
In: lib/rumai/ixp/transport.rb
Parent: Object

A thread-safe proxy that multiplexes many threads onto a single 9P2000 connection.

Methods

attach   clunk   create   entries   new   open   read   remove   remove_fid   stat   stat_fid   talk   walk   walk_fid   write  

Classes and Modules

Module Rumai::IXP::Agent::MODES
Class Rumai::IXP::Agent::FidStream
Class Rumai::IXP::Agent::RangedPool

Constants

MODES = { 'r' => Topen::OREAD, 'w' => Topen::OWRITE, 't' => Topen::ORCLOSE, '+' => Topen::ORDWR, }

Attributes

msize  [R] 

Public Class methods

Public Instance methods

Retires the given FID from use.

Creates a new file at the given path that is accessible using the given modes for a user having the given permission bits.

Returns the names of all files inside the directory whose path is given.

Opens the given path for I/O access through a FidStream object. If a block is given, it is invoked with a FidStream object and the stream is closed afterwards.

See File::open in the Ruby documentation.

Returns the content of the file/directory at the given path.

Deletes the file at the given path.

Deletes the file corresponding to the given FID and clunks the given FID.

Returns information about the file at the given path.

Returns information about the file referenced by the given FID.

Sends the given message (Rumai::IXP::Fcall) and returns its response.

This method allows you to perform a 9P2000 transaction without worrying about the details of tag collisions and thread safety.

Returns an FID corresponding to the given path.

Associates the given FID to the given path.

Returns the content of the file/directory at the given path.

[Validate]