xrootd
XrdXrootdMonData.hh
Go to the documentation of this file.
1 #ifndef __XRDXROOTDMONDATA__
2 #define __XRDXROOTDMONDATA__
3 /******************************************************************************/
4 /* */
5 /* X r d X r o o t d M o n D a t a . h h */
6 /* */
7 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */
8 /* All Rights Reserved */
9 /* Produced by Andrew Hanushevsky for Stanford University under contract */
10 /* DE-AC03-76-SFO0515 with the Department of Energy */
11 /******************************************************************************/
12 
13 #include "XProtocol/XPtypes.hh"
14 
15 /******************************************************************************/
16 /* P a c k e t D e f i n i t i o n s */
17 /******************************************************************************/
18 
20  {kXR_char code; // '='|'d'|'i'|'p'|'r'|'t'|'u'|'x'
21  kXR_char pseq; // packet sequence
22  kXR_unt16 plen; // packet length
23  kXR_int32 stod; // Unix time at Server Start
24  };
25 
27  {union {kXR_int64 val;
28  kXR_char id[8];
31  union {kXR_int32 buflen;
34  union {kXR_unt32 dictid;
36  };
37 
40  XrdXrootdMonTrace info[sizeof(XrdXrootdMonTrace)]; //This is really [n]
41  };
42 
44  {union {kXR_int32 Window;
45  struct {kXR_char Type;
48  } rdr; } arg0;
49  union {kXR_unt32 dictid;
51  };
52 
55  union {kXR_int64 sID;
56  kXR_char sXX[8]; };
57  XrdXrootdMonRedir info[sizeof(XrdXrootdMonRedir)]; //This is really [n]
58  };
59 
63  char info[1024+256];
64  };
65 
71 const kXR_char XROOTD_MON_REDHOST = 0xf0; // No Modifier
73 
74 
78 const kXR_char XROOTD_MON_MAPMIGR = 'm'; // Internal use only!
81 const kXR_char XROOTD_MON_MAPSTAG = 's'; // Internal use only!
85 
86 // The following bits are insert in the low order 4 bits of the MON_REDIRECT
87 // entry code to indicate the actual operation that was requestded.
88 //
89 const kXR_char XROOTD_MON_REDSID = 0xf0; // Server Identification
90 const kXR_char XROOTD_MON_REDTIME = 0x00; // Timing mark
91 
92 const kXR_char XROOTD_MON_REDIRECT = 0x80; // With Modifier below!
93 const kXR_char XROOTD_MON_REDLOCAL = 0x90; // With Modifier below!
94 
95 const kXR_char XROOTD_MON_CHMOD = 0x01; // Modifiers for the above
102 const kXR_char XROOTD_MON_MV = 0x08;
105 const kXR_char XROOTD_MON_RM = 0x0b;
109 
112 
113 const int XROOTD_MON_SRCMASK = 0x000000f;
114 const int XROOTD_MON_TRGMASK = 0x7fffff0;
115 const int XROOTD_MON_NEWSTID = 0x8000000;
116 
117 #endif