library: libCore #include "TNetFile.h" |
TNetFile() | |
TNetFile(const char* url, Option_t* option = "", const char* ftitle = "", Int_t compress = 1, Int_t netopt = 0) | |
virtual | ~TNetFile() |
void | TObject::AbstractMethod(const char* method) const |
void | TDirectory::Add(TObject* obj) |
virtual void | TDirectory::Append(TObject* obj) |
Int_t | TDirectory::AppendKey(TKey* key) |
virtual void | TObject::AppendPad(Option_t* option = "") |
static TFileOpenHandle* | TFile::AsyncOpen(const char* name, Option_t* option = "", const char* ftitle = "", Int_t compress = 1, Int_t netopt = 0) |
virtual void | TDirectory::Browse(TBrowser* b) |
void | TDirectory::Build(TFile* motherFile = 0, TDirectory* motherDir = 0) |
virtual Bool_t | TDirectory::cd(const char* path = "0") |
static Bool_t | TDirectory::Cd(const char* path) |
static TClass* | Class() |
virtual const char* | TObject::ClassName() const |
virtual void | TDirectory::Clear(Option_t* option = "") |
virtual TObject* | TNamed::Clone(const char* newname = "") const |
virtual void | Close(Option_t* option = "") |
virtual Int_t | TNamed::Compare(const TObject* obj) const |
virtual void | TFile::Copy(TObject&) const |
virtual TKey* | TFile::CreateKey(TDirectory* mother, const TObject* obj, const char* name, Int_t bufsize) |
virtual TKey* | TFile::CreateKey(TDirectory* mother, const void* obj, const TClass* cl, const char* name, Int_t bufsize) |
static void | TDirectory::DecodeNameCycle(const char* namecycle, char* name, Short_t& cycle) |
virtual void | TFile::Delete(const char* namecycle = "") |
virtual void | TDirectory::DeleteAll(Option_t* option = "") |
virtual Int_t | TObject::DistancetoPrimitive(Int_t px, Int_t py) |
virtual void | TFile::Draw(Option_t* option = "") |
virtual void | TObject::DrawClass() const |
virtual TObject* | TObject::DrawClone(Option_t* option = "") const |
virtual void | TFile::DrawMap(const char* keys = "*", Option_t* option = "") |
virtual void | TObject::Dump() const |
static void | TDirectory::EncodeNameCycle(char* buffer, const char* name, Short_t cycle) |
virtual void | TObject::Error(const char* method, const char* msgfmt) const |
virtual void | TObject::Execute(const char* method, const char* params, Int_t* error = 0) |
virtual void | TObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0) |
virtual void | TObject::ExecuteEvent(Int_t event, Int_t px, Int_t py) |
virtual void | TObject::Fatal(const char* method, const char* msgfmt) const |
virtual void | TFile::FillBuffer(char*& buffer) |
virtual TKey* | TDirectory::FindKey(const char* keyname) const |
virtual TKey* | TDirectory::FindKeyAny(const char* keyname) const |
virtual TObject* | TDirectory::FindObject(const char* name) const |
virtual TObject* | TDirectory::FindObject(const TObject* obj) const |
virtual TObject* | TDirectory::FindObjectAny(const char* name) const |
virtual void | Flush() |
virtual TObject* | TDirectory::Get(const char* namecycle) |
TArchiveFile* | TFile::GetArchive() const |
static TFile::EAsyncOpenStatus | TFile::GetAsyncOpenStatus(const char* name) |
static TFile::EAsyncOpenStatus | TFile::GetAsyncOpenStatus(TFileOpenHandle* handle) |
Int_t | TFile::GetBestBuffer() const |
virtual Int_t | TDirectory::GetBufferSize() const |
virtual Long64_t | TFile::GetBytesRead() const |
virtual Long64_t | TFile::GetBytesWritten() const |
TFileCacheRead* | TFile::GetCacheRead() const |
TFileCacheWrite* | TFile::GetCacheWrite() const |
TArrayC* | TFile::GetClassIndex() const |
Float_t | TFile::GetCompressionFactor() |
Int_t | TFile::GetCompressionLevel() const |
const TDatime& | TDirectory::GetCreationDate() const |
virtual TDirectory* | TDirectory::GetDirectory(const char* namecycle, Bool_t printError = false, const char* funcname = "GetDirectory") |
virtual Option_t* | TObject::GetDrawOption() const |
static Long_t | TObject::GetDtorOnly() |
virtual Long64_t | TFile::GetEND() const |
virtual const TUrl* | GetEndpointUrl() const |
virtual Int_t | TFile::GetErrno() const |
Int_t | GetErrorCode() const |
Int_t | TFile::GetFd() const |
virtual TFile* | TDirectory::GetFile() const |
static Long64_t | TFile::GetFileBytesRead() |
static Long64_t | TFile::GetFileBytesWritten() |
static Long64_t | TFile::GetFileCounter() |
static Int_t | TFile::GetFileReadCalls() |
virtual const char* | TObject::GetIconName() const |
virtual TKey* | TDirectory::GetKey(const char* name, Short_t cycle = 9999) const |
virtual TList* | TDirectory::GetList() const |
TList* | TFile::GetListOfFree() const |
virtual TList* | TDirectory::GetListOfKeys() const |
TObjArray* | TFile::GetListOfProcessIDs() const |
const TDatime& | TDirectory::GetModificationDate() const |
TObject* | TDirectory::GetMother() const |
TDirectory* | TDirectory::GetMotherDir() const |
virtual const char* | TNamed::GetName() const |
virtual Int_t | TFile::GetNbytesFree() const |
virtual Int_t | TFile::GetNbytesInfo() const |
virtual Int_t | TDirectory::GetNbytesKeys() const |
virtual Int_t | TFile::GetNfree() const |
virtual Int_t | TDirectory::GetNkeys() const |
virtual Int_t | TFile::GetNProcessIDs() const |
void | TDirectory::GetObject(const char* namecycle, void*& ptr) |
virtual void* | TDirectory::GetObjectChecked(const char* namecycle, const char* classname) |
virtual void* | TDirectory::GetObjectChecked(const char* namecycle, const TClass* cl) |
virtual char* | TObject::GetObjectInfo(Int_t px, Int_t py) const |
static Bool_t | TObject::GetObjectStat() |
virtual void* | TDirectory::GetObjectUnchecked(const char* namecycle) |
virtual Option_t* | TFile::GetOption() const |
virtual const char* | TDirectory::GetPath() const |
virtual const char* | TDirectory::GetPathStatic() const |
virtual Int_t | TFile::GetReadCalls() const |
Int_t | TFile::GetRecordHeader(char* buf, Long64_t first, Int_t maxbytes, Int_t& nbytes, Int_t& objlen, Int_t& keylen) |
virtual Long64_t | TDirectory::GetSeekDir() const |
virtual Long64_t | TFile::GetSeekFree() const |
virtual Long64_t | TFile::GetSeekInfo() const |
virtual Long64_t | TDirectory::GetSeekKeys() const |
virtual Long64_t | TDirectory::GetSeekParent() const |
virtual Long64_t | TFile::GetSize() const |
const TList* | TFile::GetStreamerInfoCache() |
virtual TList* | TFile::GetStreamerInfoList() |
virtual const char* | TNamed::GetTitle() const |
static TFile::EFileType | TFile::GetType(const char* name, Option_t* option = "") |
virtual UInt_t | TObject::GetUniqueID() const |
TUUID | TDirectory::GetUUID() const |
Int_t | TFile::GetVersion() const |
virtual Bool_t | TObject::HandleTimer(TTimer* timer) |
virtual ULong_t | TNamed::Hash() const |
static void | TFile::IncrementFileCounter() |
virtual void | TFile::IncrementProcessIDs() |
virtual void | TObject::Info(const char* method, const char* msgfmt) const |
virtual Bool_t | TObject::InheritsFrom(const char* classname) const |
virtual Bool_t | TObject::InheritsFrom(const TClass* cl) const |
virtual void | TObject::Inspect() const |
void | TObject::InvertBit(UInt_t f) |
virtual TClass* | IsA() const |
virtual Bool_t | TFile::IsArchive() const |
Bool_t | TFile::IsBinary() const |
virtual Bool_t | TObject::IsEqual(const TObject* obj) const |
virtual Bool_t | TDirectory::IsFolder() const |
Bool_t | TDirectory::IsModified() const |
Bool_t | TObject::IsOnHeap() const |
virtual Bool_t | IsOpen() const |
Bool_t | TFile::IsRaw() const |
virtual Bool_t | TNamed::IsSortable() const |
Bool_t | TDirectory::IsWritable() const |
Bool_t | TObject::IsZombie() const |
virtual void | TFile::ls(Option_t* option = "") const |
virtual void | TFile::MakeFree(Long64_t first, Long64_t last) |
virtual void | TFile::MakeProject(const char* dirname, const char* classes = "*", Option_t* option = "new") |
virtual void | TFile::Map() |
virtual Bool_t | Matches(const char* url) |
void | TObject::MayNotUse(const char* method) const |
virtual TDirectory* | TDirectory::mkdir(const char* name, const char* title = "") |
virtual Bool_t | TFile::MustFlush() const |
virtual Bool_t | TObject::Notify() |
static TFile* | TFile::Open(TFileOpenHandle* handle) |
static TFile* | TFile::Open(const char* name, Option_t* option = "", const char* ftitle = "", Int_t compress = 1, Int_t netopt = 0) |
static void | TObject::operator delete(void* ptr) |
static void | TObject::operator delete(void* ptr, void* vp) |
static void | TObject::operator delete[](void* ptr) |
static void | TObject::operator delete[](void* ptr, void* vp) |
void* | TObject::operator new(size_t sz) |
void* | TObject::operator new(size_t sz, void* vp) |
void* | TObject::operator new[](size_t sz) |
void* | TObject::operator new[](size_t sz, void* vp) |
virtual void | TFile::Paint(Option_t* option = "") |
virtual void | TObject::Pop() |
virtual void | TDirectory::Purge(Short_t nkeep = 1) |
virtual void | TDirectory::pwd() const |
virtual Int_t | TObject::Read(const char* name) |
virtual void | TDirectory::ReadAll(Option_t* option = "") |
virtual Bool_t | ReadBuffer(char* buf, Int_t len) |
virtual Bool_t | ReadBuffers(char* buf, Long64_t* pos, Int_t* len, Int_t nbuf) |
virtual void | TFile::ReadFree() |
virtual Int_t | TDirectory::ReadKeys() |
virtual void | TFile::ReadStreamerInfo() |
virtual Int_t | TFile::Recover() |
virtual void | TDirectory::RecursiveRemove(TObject* obj) |
virtual Int_t | ReOpen(Option_t* mode) |
void | TObject::ResetBit(UInt_t f) |
virtual void | TFile::ResetErrno() const |
virtual void | TDirectory::rmdir(const char* name) |
virtual void | TDirectory::Save() |
virtual void | TObject::SaveAs(const char* filename = "", Option_t* option = "") const |
virtual void | TObject::SavePrimitive(ostream& out, Option_t* option = "") |
virtual void | TDirectory::SaveSelf(Bool_t force = kFALSE) |
virtual void | Seek(Long64_t offset, TFile::ERelativeTo pos = kBeg) |
void | TObject::SetBit(UInt_t f) |
void | TObject::SetBit(UInt_t f, Bool_t set) |
virtual void | TDirectory::SetBufferSize(Int_t bufsize) |
virtual void | TFile::SetCacheRead(TFileCacheRead* cache) |
virtual void | TFile::SetCacheWrite(TFileCacheWrite* cache) |
virtual void | TFile::SetCompressionLevel(Int_t level = 1) |
virtual void | TObject::SetDrawOption(Option_t* option = "") |
static void | TObject::SetDtorOnly(void* obj) |
virtual void | TFile::SetEND(Long64_t last) |
static void | TFile::SetFileBytesRead(Long64_t bytes = 0) |
static void | TFile::SetFileBytesWritten(Long64_t bytes = 0) |
static void | TFile::SetFileReadCalls(Int_t readcalls = 0) |
void | TDirectory::SetModified() |
void | TDirectory::SetMother(const TObject* mother) |
virtual void | TDirectory::SetName(const char* newname) |
virtual void | TNamed::SetNameTitle(const char* name, const char* title) |
static void | TObject::SetObjectStat(Bool_t stat) |
virtual void | TFile::SetOption(Option_t* option = ">") |
virtual void | TFile::SetReadCalls(Int_t readcalls = 0) |
static void | TFile::SetReadStreamerInfo(Bool_t readinfo = kTRUE) |
void | TDirectory::SetSeekDir(Long64_t v) |
virtual void | TNamed::SetTitle(const char* title = "") |
virtual void | TObject::SetUniqueID(UInt_t uid) |
void | TDirectory::SetWritable(Bool_t writable = kTRUE) |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual void | TFile::ShowStreamerInfo() |
virtual Int_t | TFile::Sizeof() const |
virtual void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
void | TFile::SumBuffer(Int_t bufsize) |
virtual void | TObject::SysError(const char* method, const char* msgfmt) const |
Bool_t | TObject::TestBit(UInt_t f) const |
Int_t | TObject::TestBits(UInt_t f) const |
virtual void | TFile::UseCache(Int_t maxCacheSize = 10, Int_t pageSize = 0) |
virtual void | TObject::UseCurrentStyle() |
virtual void | TObject::Warning(const char* method, const char* msgfmt) const |
virtual Int_t | TFile::Write(const char* name = "0", Int_t opt = 0, Int_t bufsiz = 0) |
virtual Int_t | TFile::Write(const char* name = "0", Int_t opt = 0, Int_t bufsiz = 0) const |
virtual Bool_t | WriteBuffer(const char* buf, Int_t len) |
virtual void | TDirectory::WriteDirHeader() |
virtual void | TFile::WriteFree() |
virtual void | TFile::WriteHeader() |
virtual void | TDirectory::WriteKeys() |
Int_t | TDirectory::WriteObject(const void* obj, const char* name, Option_t* option = "") |
virtual Int_t | TDirectory::WriteObjectAny(const void* obj, const char* classname, const char* name, Option_t* option = "") |
virtual Int_t | TDirectory::WriteObjectAny(const void* obj, const TClass* cl, const char* name, Option_t* option = "") |
virtual void | TFile::WriteStreamerInfo() |
virtual Int_t | TDirectory::WriteTObject(const TObject* obj, const char* name = "0", Option_t* option = "") |
TNetFile(const TNetFile&) | |
TNetFile(const char* url, const char* ftitle, Int_t comp, Bool_t) | |
Bool_t | TDirectory::cd1(const char* path) |
static Bool_t | TDirectory::Cd1(const char* path) |
virtual void | ConnectServer(Int_t* stat, EMessageTypes* kind, Int_t netopt, Int_t tcpwindowsize, Bool_t forceOpen, Bool_t forceRead) |
virtual void | Create(const char* url, Option_t* option, Int_t netopt) |
virtual void | Create(TSocket* s, Option_t* option, Int_t netopt) |
virtual Long64_t | TFile::DirCreateEntry(TDirectory*) |
virtual Int_t | TFile::DirReadKeys(TDirectory*) |
virtual void | TFile::DirWriteHeader(TDirectory*) |
virtual void | TFile::DirWriteKeys(TDirectory*) |
virtual void | TObject::DoError(int level, const char* location, const char* fmt, va_list va) const |
void | TDirectory::FillFullPath(TString& buf) const |
Bool_t | TFile::FlushWriteCache() |
virtual TFile::EAsyncOpenStatus | TFile::GetAsyncOpenStatus() |
Long64_t | TFile::GetRelOffset() const |
virtual void | Init(Bool_t create) |
void | TObject::MakeZombie() |
TNetFile& | operator=(const TNetFile&) |
virtual void | Print(Option_t* option) const |
void | PrintError(const char* where, Int_t err) |
Int_t | TFile::ReadBufferViaCache(char* buf, Int_t len) |
Int_t | Recv(Int_t& status, EMessageTypes& kind) |
virtual Int_t | SysClose(Int_t fd) |
virtual Int_t | SysOpen(const char* pathname, Int_t flags, UInt_t mode) |
virtual Int_t | TFile::SysRead(Int_t fd, void* buf, Int_t len) |
virtual Long64_t | TFile::SysSeek(Int_t fd, Long64_t offset, Int_t whence) |
virtual Int_t | SysStat(Int_t fd, Long_t* id, Long64_t* size, Long_t* flags, Long_t* modtime) |
virtual Int_t | TFile::SysSync(Int_t fd) |
virtual Int_t | TFile::SysWrite(Int_t fd, const void* buf, Int_t len) |
Int_t | TFile::WriteBufferViaCache(const char* buf, Int_t len) |
enum TFile::EAsyncOpenStatus { | kAOSNotAsync | |
kAOSFailure | ||
kAOSInProgress | ||
kAOSSuccess | ||
}; | ||
enum TFile::EStatusBits { | kRecovered | |
kHasReferences | ||
kDevNull | ||
kWriteError | ||
kBinaryFile | ||
kRedirected | ||
}; | ||
enum TFile::ERelativeTo { | kBeg | |
kCur | ||
kEnd | ||
}; | ||
enum TFile::[unnamed] { | kStartBigFile | |
}; | ||
enum TFile::EFileType { | kDefault | |
kLocal | ||
kNet | ||
kWeb | ||
kFile | ||
}; | ||
enum TDirectory::[unnamed] { | kCloseDirectory | |
}; | ||
enum TObject::EStatusBits { | kCanDelete | |
kMustCleanup | ||
kObjInCanvas | ||
kIsReferenced | ||
kHasUUID | ||
kCannotPick | ||
kNoContextMenu | ||
kInvalidObject | ||
}; | ||
enum TObject::[unnamed] { | kIsOnHeap | |
kNotDeleted | ||
kZombie | ||
kBitMask | ||
kSingleKey | ||
kOverwrite | ||
kWriteDelete | ||
}; |
TUrl | fEndpointUrl | URL of realfile (after possible redirection) |
TString | fUser | remote user name |
TSocket* | fSocket | connection to rootd server |
Int_t | fProtocol | rootd protocol level |
Int_t | fErrorCode | error code returned by rootd (matching gRootdErrStr) |
Double_t | TFile::fSumBuffer | Sum of buffer sizes of objects written so far |
Double_t | TFile::fSum2Buffer | Sum of squares of buffer sizes of objects written so far |
Long64_t | TFile::fBytesWrite | Number of bytes written to this file |
Long64_t | TFile::fBytesRead | Number of bytes read from this file |
Long64_t | TFile::fBEGIN | First used byte in file |
Long64_t | TFile::fEND | Last used byte in file |
Long64_t | TFile::fSeekFree | Location on disk of free segments structure |
Long64_t | TFile::fSeekInfo | Location on disk of StreamerInfo record |
Int_t | TFile::fD | File descriptor |
Int_t | TFile::fVersion | File format version |
Int_t | TFile::fCompress | Compression level from 0(not compressed) to 9 (max compression) |
Int_t | TFile::fNbytesFree | Number of bytes for free segments structure |
Int_t | TFile::fNbytesInfo | Number of bytes for StreamerInfo record |
Int_t | TFile::fWritten | Number of objects written so far |
Int_t | TFile::fNProcessIDs | Number of TProcessID written to this file |
Int_t | TFile::fReadCalls | Number of read calls ( not counting the cache calls ) |
TString | TFile::fRealName | Effective real file name (not original url) |
TString | TFile::fOption | File options |
Char_t | TFile::fUnits | Number of bytes for file pointers |
TList* | TFile::fFree | Free segments linked list table |
TArrayC* | TFile::fClassIndex | !Index of TStreamerInfo classes written to this file |
TObjArray* | TFile::fProcessIDs | !Array of pointers to TProcessIDs |
Long64_t | TFile::fOffset | !Seek offset used by remote file classes |
TArchiveFile* | TFile::fArchive | !Archive file from which we read this file |
TFileCacheRead* | TFile::fCacheRead | !Pointer to the read cache (if any) |
TFileCacheWrite* | TFile::fCacheWrite | !Pointer to the write cache (if any) |
Long64_t | TFile::fArchiveOffset | !Offset at which file starts in archive |
Bool_t | TFile::fIsArchive | !True if this is a pure archive file |
Bool_t | TFile::fNoAnchorInName | !True if we don't want to force the anchor to be appended to the file name |
Bool_t | TFile::fIsRootFile | !True is this is a ROOT file, raw file otherwise |
Bool_t | TFile::fInitDone | !True if the file has been initialized |
Bool_t | TFile::fMustFlush | !True if the file buffers must be flushed |
TFileOpenHandle* | TFile::fAsyncHandle | !For proper automatic cleanup |
TFile::EAsyncOpenStatus | TFile::fAsyncOpenStatus | !Status of an asynchronous open request |
TUrl | TFile::fUrl | !URL of file |
TList* | TFile::fInfoCache | !Cached list of the streamer infos in this file |
static TList* | TFile::fgAsyncOpenRequests | !List of handles for pending open requests |
static Long64_t | TFile::fgBytesWrite | Number of bytes written by all TFile objects |
static Long64_t | TFile::fgBytesRead | Number of bytes read by all TFile objects |
static Long64_t | TFile::fgFileCounter | Counter for all opened files |
static Int_t | TFile::fgReadCalls | Number of bytes read from all TFile objects |
static Bool_t | TFile::fgReadInfo | if true (default) ReadStreamerInfo is called when opening a file |
Bool_t | TDirectory::fModified | true if directory has been modified |
Bool_t | TDirectory::fWritable | true if directory is writable |
TDatime | TDirectory::fDatimeC | Date and time when directory is created |
TDatime | TDirectory::fDatimeM | Date and time of last modification |
Int_t | TDirectory::fNbytesKeys | Number of bytes for the keys |
Int_t | TDirectory::fNbytesName | Number of bytes in TNamed at creation time |
Int_t | TDirectory::fBufferSize | Default buffer size to create new TKeys |
Long64_t | TDirectory::fSeekDir | Location of directory on file |
Long64_t | TDirectory::fSeekParent | Location of parent directory on file |
Long64_t | TDirectory::fSeekKeys | Location of Keys record on file |
TFile* | TDirectory::fFile | pointer to current file in memory |
TObject* | TDirectory::fMother | pointer to mother of the directory |
TList* | TDirectory::fList | Pointer to objects list in memory |
TList* | TDirectory::fKeys | Pointer to keys list in memory |
TUUID | TDirectory::fUUID | Unique identifier |
TString | TDirectory::fPathBuffer | !Buffer for GetPath() function |
TString | TNamed::fName | object identifier |
TString | TNamed::fTitle | object title |
TNetFile A TNetFile is like a normal TFile except that it reads and writes its data via a rootd server (for more on the rootd daemon see the source files root/rootd/src/*.cxx). TNetFile file names are in standard URL format with protocol "root" or "roots". The following are valid TNetFile URL's: roots://hpsalo/files/aap.root root://hpbrun.cern.ch/root/hsimple.root root://pcna49a:5151/~na49/data/run821.root root://pcna49d.cern.ch:5050//v1/data/run810.root The only difference with the well known httpd URL's is that the root of the remote file tree is the user's home directory. Therefore an absolute pathname requires a // after the host or port specifier (see last example). Further the expansion of the standard shell characters, like ~, $, .., are handled as expected. TNetFile (actually TUrl) uses 1094 as default port for rootd. Connecting to a rootd requires the remote user id and password. TNetFile allows three ways for you to provide your login: 1) Setting it globally via the static functions: TAuthenticate::SetGlobalUser() and TAuthenticate::SetGlobalPasswd() 2) Getting it from the ~/.netrc file (same file as used by ftp) 3) Command line prompt The different methods will be tried in the order given above. On machines with AFS rootd will authenticate using AFS (if it was compiled with AFS support). If the protocol is specified as "roots" a secure authetication method will be used. The secure method uses the SRP, Secure Remote Passwords, package. SRP uses a so called "asymmetric key exchange // protocol" in which no passwords are ever send over the wire. This // protocol is safe against all known security attacks. For more see:NetFile //
If the protocol is specified as "rootk" kerberos5 will be used for
authentication.
The rootd daemon lives in the directory $ROOTSYS/bin. It can be
started either via inetd or by hand from the command line (no need
to be super user). For more info about rootd see the web page:
NetFile //
Create a TNetFile object. This is actually done inside Create(), so for a description of the options and other arguments see Create(). Normally a TNetFile is created via TFile::Open().
Create a TNetFile object. To be used by derived classes, that need to initialize the TFile base class but not open a connection at this moment.
Open a remote file. Requires fOption to be set correctly.
Return file stat information. The interface and return value is identical to TSystem::GetPathInfo().
Reopen a file with a different access mode, like from READ to UPDATE or from NEW, CREATE, RECREATE, UPDATE to READ. Thus the mode argument can be either "READ" or "UPDATE". The method returns 0 in case the mode was successfully modified, 1 in case the mode did not change (was already as requested or wrong input arguments) and -1 in case of failure, in which case the file cannot be used anymore.
Read specified byte range from remote file via rootd daemon. Returns kTRUE in case of error.
Read a list of buffers given in pos[] and len[] and return it in a single buffer. Returns kTRUE in case of error.
Write specified byte range to remote file via rootd daemon. Returns kTRUE in case of error.
Return status from rootd server and message kind. Returns -1 in case of error otherwise 8 (sizeof 2 words, status and kind).
Connect to remote rootd server.
Create a NetFile object. A net file is the same as a TFile except that it is being accessed via a rootd server. The url argument must be of the form: root[s|k]://host.dom.ain/file.root. When protocol is "roots" try using SRP authentication. When protocol is "rootk" try using kerberos5 authentication. If the file specified in the URL does not exist, is not accessable or can not be created the kZombie bit will be set in the TNetFile object. Use IsZombie() to see if the file is accessable. If the remote daemon thinks the file is still connected, while you are sure this is not the case you can force open the file by preceding the option argument with an "-", e.g.: "-recreate". Do this only in cases when you are very sure nobody else is using the file. To bypass the writelock on a file, to allow the reading of a file that is being written by another process, explicitely specify the "+read" option ("read" being the default option). The netopt argument can be used to specify the size of the tcp window in bytes (for more info see: http://www.psc.edu/networking/perf_tune.html). The default and minimum tcp window size is 65535 bytes. If netopt < -1 then |netopt| is the number of parallel sockets that will be used to connect to rootd. This option should be used on fat pipes (i.e. high bandwidth, high latency links). The ideal number of parallel sockets depends on the bandwidth*delay product. Generally 5-7 is a good number. For a description of the option and other arguments see the TFile ctor. The preferred interface to this constructor is via TFile::Open().
Create a NetFile object using an existing connection (socket s). Provided for use in TXNetFile. See: TNetFile::Create(const char *url, Option_t *option, Int_t netopt) for details about the arguments.
Return kTRUE if 'url' matches the coordinates of this file. Check the full URL, including port and FQDN.