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

MultiSRPC Class Reference

#include <MultiSRPC.H>

List of all members.

Public Types

typedef int ConnId

Public Member Functions

 MultiSRPC (const Text &interface=Text(""))
 ~MultiSRPC ()
ConnId Start (const Text &hostname, SRPC *&srpc) throw (SRPC::failure)
ConnId Start (const Text &hostname, const Text &interface, SRPC *&srpc) throw (SRPC::failure)
void End (ConnId id) throw ()
void Discard (ConnId id) throw ()
void Purge (const Text &hostname, const Text &interface) throw (SRPC::failure)

Private Types

typedef EntryEntryPtr

Private Attributes

Text intf
Basics::mutex mu
int next
int num
EntryPtrtbl

Classes

struct  Entry


Member Typedef Documentation

typedef int MultiSRPC::ConnId
 

Definition at line 85 of file MultiSRPC.H.

typedef Entry* MultiSRPC::EntryPtr [private]
 

Definition at line 169 of file MultiSRPC.H.


Constructor & Destructor Documentation

MultiSRPC::MultiSRPC const Text interface = Text("")  ) 
 

Definition at line 43 of file MultiSRPC.C.

References NEW_ARRAY, num, and tbl.

MultiSRPC::~MultiSRPC  ) 
 

Definition at line 52 of file MultiSRPC.C.

References LOCK, next, tbl, and UNLOCK.


Member Function Documentation

void MultiSRPC::Discard ConnId  id  )  throw ()
 

Definition at line 200 of file MultiSRPC.C.

References LOCK, and UNLOCK.

Referenced by VDirEvaluator::alive().

void MultiSRPC::End ConnId  id  )  throw ()
 

Definition at line 184 of file MultiSRPC.C.

References LOCK, and UNLOCK.

Referenced by VDirEvaluator::alive(), C_Multi1(), Client(), VDirEvaluator::list(), VDirEvaluator::lookup(), MainClientProc(), and VestaSourceSRPC::End().

void MultiSRPC::Purge const Text hostname,
const Text interface
throw (SRPC::failure)
 

Definition at line 212 of file MultiSRPC.C.

References SRPC::invalid_parameter, LOCK, and UNLOCK.

Referenced by VDirEvaluator::alive(), and VDirEvaluator::purge().

MultiSRPC::ConnId MultiSRPC::Start const Text hostname,
const Text interface,
SRPC *&  srpc
throw (SRPC::failure)
 

Definition at line 68 of file MultiSRPC.C.

References SRPC::caller, SRPC::invalid_parameter, Basics::mutex::lock(), mu, NEW, NEW_ARRAY, NEW_CONSTR, and Basics::mutex::unlock().

ConnId MultiSRPC::Start const Text hostname,
SRPC *&  srpc
throw (SRPC::failure) [inline]
 

Definition at line 89 of file MultiSRPC.H.

Referenced by VDirEvaluator::alive(), C_Multi1(), Client(), VDirEvaluator::list(), VDirEvaluator::lookup(), MainClientProc(), and VestaSourceSRPC::Start().


Member Data Documentation

Text MultiSRPC::intf [private]
 

Definition at line 148 of file MultiSRPC.H.

Basics::mutex MultiSRPC::mu [private]
 

Definition at line 152 of file MultiSRPC.H.

int MultiSRPC::next [private]
 

Definition at line 173 of file MultiSRPC.H.

Referenced by ~MultiSRPC().

int MultiSRPC::num [private]
 

Definition at line 173 of file MultiSRPC.H.

Referenced by MultiSRPC().

EntryPtr* MultiSRPC::tbl [private]
 

Definition at line 174 of file MultiSRPC.H.

Referenced by MultiSRPC(), and ~MultiSRPC().


The documentation for this class was generated from the following files:
Generated on Mon May 8 00:49:11 2006 for Vesta by  doxygen 1.4.2