xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdMon
XrdMonSndDictEntry.hh
Go to the documentation of this file.
1
/*****************************************************************************/
2
/* */
3
/* XrdMonSndDictEntry.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 DICTENTRY_HH
14
#define DICTENTRY_HH
15
16
#include "
XrdMon/XrdMonTypes.hh
"
17
#include "
XrdSys/XrdSysHeaders.hh
"
18
19
#include <string>
20
using
std::ostream;
21
using
std::string;
22
23
// <user>.<pid>:<fd>@<host>\npath
24
class
XrdMonSndDictEntry
{
25
public
:
26
struct
CompactEntry
{
27
kXR_int32
id
;
28
string
others
;
// <user>.<pid>:<fd>@<host>\n<path>
29
kXR_int16
size
()
const
{
return
4 +
others
.size();}
30
};
31
32
XrdMonSndDictEntry
(
string
u,
33
kXR_int16
pid,
34
kXR_int16
fd,
35
string
host,
36
string
path,
37
kXR_int32
id
);
38
39
CompactEntry
code
();
40
41
private
:
42
string
_user
;
43
kXR_int16
_pid
;
44
kXR_int16
_fd
;
45
string
_host
;
46
string
_path
;
47
48
kXR_int32
_myId
;
49
50
friend
ostream&
operator<<
(ostream& o,
51
const
XrdMonSndDictEntry
& m);
52
};
53
54
#endif
/* DICTENTRY_HH */
Generated by
1.8.3.1