xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdMon
XrdMonCommon.hh
Go to the documentation of this file.
1
/*****************************************************************************/
2
/* */
3
/* XrdMonCommon.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 XRDMONCOMMON_HH
14
#define XRDMONCOMMON_HH
15
16
#include "
XrdMon/XrdMonTypes.hh
"
17
18
// common settings for UDP transmitter and receiver
19
20
const
kXR_int32
MAXPACKETSIZE
= 65536;
// [bytes], (16 bits for length in hdr)
21
const
kXR_int16
HDRLEN
= 8;
// [bytes]
22
const
kXR_int16
TRACEELEMLEN
= 16;
// [bytes]
23
24
// size for data inside packet. 2*kXR_int16 is used
25
// by packet type and number of elements
26
const
kXR_int16
TRACELEN
= 16;
27
28
extern
const
char
*
DEFAULT_HOST
;
29
extern
const
int
DEFAULT_PORT
;
30
31
const
kXR_char
PACKET_TYPE_ADMIN
=
'A'
;
32
const
kXR_char
PACKET_TYPE_DICT
=
'd'
;
33
const
kXR_char
PACKET_TYPE_INFO
=
'i'
;
34
const
kXR_char
PACKET_TYPE_STAGE
=
's'
;
35
const
kXR_char
PACKET_TYPE_TRACE
=
't'
;
36
const
kXR_char
PACKET_TYPE_USER
=
'u'
;
37
38
const
char
XROOTD_MON_RWREQUESTMASK
= 0x80;
39
// why 0x80: anything that is < 0x7f is rwrequest
40
// 0x7f = 01111111, so !(x & 10000000), 1000 0000=0x80
41
42
43
// increment this each time a protocol changes.
44
// 1 = (the code without XRDMON_VERSION).
45
// 2 = changed API: extended to include file size information
46
// sent from xrootd. Also, all timestamps in GMT instead
47
// of localtime
48
// 3 = added current time to the "u" entries at the end
49
// 4 = added support for staging information ("s" entries)
50
const
kXR_int16
XRDMON_VERSION
= 4;
51
52
enum
AdminCommand
{
53
c_shutdown
= 1000
54
};
55
56
enum
{
57
INVALID_SENDER_ID
= 65535
58
};
59
#endif
/* XRDMONCOMMON_HH */
Generated by
1.8.3.1