[ROOT] TNetFile

From: Susan Kasahara (schubert@physics.umn.edu)
Date: Mon Jun 25 2001 - 06:34:43 MEST


Hi rooters,
I am using TNetFile to access remote files served by rootd.  I'm
interested in having better access to the error codes that are
sent by rootd to TNetFile when it fails to open a file successfully.
These error codes are the enumerated list ERootdErrors defined
in rootd.h and are translated into strings by gRootdErrStr (defined in
TNetFile).  I see, for example,  that the TNetFile constructor uses the socket
received ERootdErrors code from rootd to print an error statement when an
error occurs during the opening of a file.
  What I would like is to have access to this error code when TNetFile
fails to open a file, so that I can take appropriate action during job run-time
(sort of like using "errno" to determine why a unix system open call failed
to open a file).
Is this possible?
Thanks,
-Sue



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET