XrdXrootdMonData.hh

Go to the documentation of this file.
00001 #ifndef __XRDXROOTDMONDATA__
00002 #define __XRDXROOTDMONDATA__
00003 /******************************************************************************/
00004 /*                                                                            */
00005 /*                   X r d X r o o t d M o n D a t a . h h                    */
00006 /*                                                                            */
00007 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University  */
00008 /*                            All Rights Reserved                             */
00009 /*   Produced by Andrew Hanushevsky for Stanford University under contract    */
00010 /*              DE-AC03-76-SFO0515 with the Department of Energy              */
00011 /******************************************************************************/
00012   
00013 //       $Id: XrdXrootdMonData.hh 27487 2009-02-18 13:17:34Z ganis $
00014 
00015 #include "XProtocol/XPtypes.hh"
00016 
00017 /******************************************************************************/
00018 /*                    P a c k e t   D e f i n i t i o n s                     */
00019 /******************************************************************************/
00020   
00021 struct XrdXrootdMonHeader
00022        {kXR_char   code;         // 'd' | 'i' | 't' | 'u'
00023         kXR_char   pseq;         // packet sequence
00024         kXR_unt16  plen;         // packet length
00025         kXR_int32  stod;         // Unix time at Server Start
00026        };
00027 
00028 struct XrdXrootdMonTrace
00029        {union {kXR_int64  val;
00030                kXR_char   id[8];
00031                kXR_unt32  rTot[2]; } arg0;
00032         union {kXR_int32  buflen;
00033                kXR_int32  Window;
00034                kXR_unt32  wTot;    } arg1;
00035         union {kXR_unt32  dictid;
00036                kXR_int32  Window;  } arg2;
00037        };
00038 
00039 struct XrdXrootdMonBuff
00040        {XrdXrootdMonHeader hdr;
00041         XrdXrootdMonTrace  info[1];    // Actually this is [n]
00042        };
00043 
00044 struct XrdXrootdMonMap
00045        {XrdXrootdMonHeader hdr;
00046         kXR_unt32          dictid;
00047         char               info[1024+256];
00048        };
00049   
00050 const kXR_char XROOTD_MON_APPID         = 0xa0;
00051 const kXR_char XROOTD_MON_CLOSE         = 0xc0;
00052 const kXR_char XROOTD_MON_DISC          = 0xd0;
00053 const kXR_char XROOTD_MON_OPEN          = 0x80;
00054 const kXR_char XROOTD_MON_WINDOW        = 0xe0;
00055 
00056 const kXR_char XROOTD_MON_MAPPATH       = 'd';
00057 const kXR_char XROOTD_MON_MAPINFO       = 'i';
00058 const kXR_char XROOTD_MON_MAPSTAG       = 's';
00059 const kXR_char XROOTD_MON_MAPTRCE       = 't';
00060 const kXR_char XROOTD_MON_MAPUSER       = 'u';
00061 
00062 #endif

Generated on Tue Jul 5 14:47:04 2011 for ROOT_528-00b_version by  doxygen 1.5.1