library: libNetx #include "TXNetSystem.h" |
TXNetSystem
class description - header file - source file - inheritance tree (.pdf)
private:
virtual void* GetDirPtr() const
void InitXrdClient()
void SaveEndPointUrl()
public:
TXNetSystem(Bool_t owner = kTRUE)
TXNetSystem(const char* url, Bool_t owner = kTRUE)
TXNetSystem(const TXNetSystem&)
virtual ~TXNetSystem()
virtual Bool_t AccessPathName(const char* path, EAccessMode mode)
static TClass* Class()
virtual Bool_t ConsistentWith(const char* path, void* dirptr)
virtual void FreeDirectory(void* dirp)
virtual const char* GetDirEntry(void* dirp)
virtual Int_t GetPathInfo(const char* path, FileStat_t& buf)
virtual TClass* IsA() const
virtual Int_t MakeDirectory(const char* dir)
virtual void* OpenDirectory(const char* dir)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
private:
XrdClientAdmin* fClientAdmin Handle to the client admin object
Bool_t fIsRootd Nature of remote file server
Bool_t fIsXRootd Nature of remote file server
TString fDir Current directory
void* fDirp Directory pointer
XrdClientVector<XrdOucString> fDirList Buffer for directory content
Bool_t fDirListValid fDirList content valid ?
static Bool_t fgInitDone Avoid initializing more than once
static Bool_t fgRootdBC Control rootd backward compatibility
TXNetSystem
Authors: Frank Winklmeier, Fabrizio Furano
INFN Padova, 2005
TXNetSystem is an extension of TNetSystem able to deal with new
xrootd servers. The class detects the nature of the server and
redirects the calls to TNetSystem in case of a rootd server.
void InitXrdClient()
One-time initialization of some communication variables for xrootd protocol
void* OpenDirectory(const char* dir)
Open a directory. Returns a non-zero pointer (with no special
purpose) in case of success, 0 in case of error.
void FreeDirectory(void *dirp)
Free(Close) the directory referenced by dirp
const char* GetDirEntry(void *dirp)
Get directory entry for directory referenced by dirp.
Returns 0 in case there are no more entries.
Int_t GetPathInfo(const char* path, FileStat_t &buf)
Get info about a file. Info is returned in the form of a FileStat_t
structure (see TSystem.h).
The function returns 0 in case of success and 1 if the file could
not be stat'ed.
NOTICE: Not all information is available with an xrootd server.
Bool_t ConsistentWith(const char *path, void *dirptr)
Check consistency of this helper with the one required
by 'path' or 'dirptr'.
Bool_t AccessPathName(const char *path, EAccessMode mode)
Returns FALSE if one can access a file using the specified access mode.
NB: for the time being mode is ignored for XROOTD (just checks existence
of the file or directory).
Mode is the same as for the Unix access(2) function.
Attention, bizarre convention of return value!!
Author: Frank Winklmeier, Fabrizio Furano
Last update: root/netx:$Name: $:$Id: TXNetSystem.cxx,v 1.12 2006/06/30 14:36:02 rdm Exp $
Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.