00001 #ifndef __XrdRootdProtocol_H__ 00002 #define __XrdRootdProtocol_H__ 00003 /******************************************************************************/ 00004 /* */ 00005 /* X r d R o o t d P r o t o c o l . h h */ 00006 /* */ 00007 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */ 00008 /* All Rights Reserved. See XrdInfo.cc for complete License Terms */ 00009 /* Produced by Andrew Hanushevsky for Stanford University under contract */ 00010 /* DE-AC03-76-SFO0515 with the Department of Energy */ 00011 /******************************************************************************/ 00012 00013 // $Id: XrdRootdProtocol.hh 22437 2008-03-04 14:35:16Z rdm $ 00014 00015 #include "Xrd/XrdProtocol.hh" 00016 00017 /******************************************************************************/ 00018 /* x r d _ P r o t o c o l _ R o o t d */ 00019 /******************************************************************************/ 00020 00021 class XrdSysError; 00022 class XrdOucTrace; 00023 class XrdLink; 00024 class XrdScheduler; 00025 00026 class XrdRootdProtocol : XrdProtocol 00027 { 00028 public: 00029 00030 void DoIt() {} 00031 00032 XrdProtocol *Match(XrdLink *lp); 00033 00034 int Process(XrdLink *lp) {return -1;} 00035 00036 void Recycle(XrdLink *lp, int x, const char *y) {} 00037 00038 int Stats(char *buff, int blen, int do_sync); 00039 00040 XrdRootdProtocol(XrdProtocol_Config *pi, 00041 const char *pgm, const char **pap); 00042 ~XrdRootdProtocol() {} // Never gets destroyed 00043 00044 private: 00045 00046 XrdScheduler *Scheduler; 00047 const char *Program; 00048 const char **ProgArg; 00049 XrdSysError *eDest; 00050 XrdOucTrace *XrdTrace; 00051 int stderrFD; 00052 int ReadWait; 00053 static int Count; 00054 static const char *TraceID; 00055 }; 00056 #endif