00001 // @(#)root/rpdutils:$Id: rpddefs.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Gerardo Ganis 7/4/2003 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_rpddefs 00013 #define ROOT_rpddefs 00014 00015 00016 ///////////////////////////////////////////////////////////////////// 00017 // // 00018 // Definition used by daemons // 00019 // // 00020 ///////////////////////////////////////////////////////////////////// 00021 00022 #ifndef ROOT_AuthConst 00023 #include "AuthConst.h" 00024 #endif 00025 00026 // 00027 // Typedefs 00028 typedef void (*SigPipe_t)(int); 00029 00030 // 00031 // Global consts 00032 const int kMAXRECVBUF = 1024; 00033 const int kMAXUSERLEN = 128; 00034 00035 // Masks for initialization options 00036 const unsigned int kDMN_RQAUTH = 0x1; // Require authentication 00037 const unsigned int kDMN_HOSTEQ = 0x2; // Allow host equivalence 00038 const unsigned int kDMN_SYSLOG = 0x4; // Log messages to syslog i.o. stderr 00039 00040 // 00041 // type of service 00042 enum EService { kSOCKD = 0, kROOTD, kPROOFD }; 00043 00044 #endif