Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

Fuse::Reactor Class Reference

Collaboration diagram for Fuse::Reactor:

Collaboration graph
[legend]
List of all members.

Detailed Description

Decodes and dispatches requests comming from the FUSE kernel.

Reactor subscribes to events from a Fuse.Channel, decodes them, and converts them into requests on particular file or directory nodes (FileNode or DirNode).

Typical usage for mounting a filesystem:

      // select a mount point where the filesystem will be visible
      string mountPoint = "/tmp/foo";

      // Create the filesystem which will handle the requests.
      Fuse.FileSystem fs = new RawFS.RawFileSystem( "/tmp/foo-raw" );

      // create the channel to the FUSE kernel module.
      Channel channel = new Fuse.Channel( mountPoint, fs );

      // create a reactor to dispatch the requests
      Fuse.Reactor reactor = new Fuse.Reactor();

      // subscribe to one or more channels..
      reactor.SubscribeTo( channel );

      // have channel process events until it is unmounted..
      channel.EventLoop();

See also:
Channel
Author:
Valient Gough


Public Member Functions

Reactor SubscribeTo (Channel channel)

Public Attributes

const int ENTRY_REVALIDATE_TIME = 1
const int ATTR_REVALIDATE_TIME = 1


Member Function Documentation

Reactor Fuse::Reactor::SubscribeTo Channel  channel  )  [inline]
 

Subscribe the Reactor to events from the given Channel.


The documentation for this class was generated from the following file:
Generated on Wed May 18 23:16:59 2005 for SULF by  doxygen 1.4.3