xrootd
XrdMonCtrAdmin.hh
Go to the documentation of this file.
1 /*****************************************************************************/
2 /* */
3 /* XrdMonCtrAdmin.hh */
4 /* */
5 /* (c) 2005 by the Board of Trustees of the Leland Stanford, Jr., University */
6 /* All Rights Reserved */
7 /* Produced by Jacek Becla for Stanford University under contract */
8 /* DE-AC02-76SF00515 with the Department of Energy */
9 /*****************************************************************************/
10 
11 // $Id$
12 
13 #ifndef XRDMONCTRADMIN_HH
14 #define XRDMONCTRADMIN_HH
15 
16 #include "XrdMon/XrdMonCommon.hh"
17 #include "XrdMon/XrdMonHeader.hh"
18 
19 // class responsible for interpreting admin packets
20 // and taking appropriete action
21 
23 
24 public:
25  static bool isAdminPacket(const XrdMonHeader& header) {
26  return header.packetType() == PACKET_TYPE_ADMIN;
27  }
28 
29  static void doIt(kXR_int16 command, kXR_int16 arg);
30 
31  static void decodeAdminPacket(const char* packet,
32  kXR_int16& command,
33  kXR_int16& arg);
34 };
35 
36 #endif /* XRDMONCTRADMIN_HH */