xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdMon
XrdMonSndPacket.hh
Go to the documentation of this file.
1
/*****************************************************************************/
2
/* */
3
/* XrdMonSndPacket.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 XRDMONSNDPACKET_HH
14
#define XRDMONSNDPACKET_HH
15
16
#include "
XrdMon/XrdMonCommon.hh
"
17
#include "
XrdMon/XrdMonTypes.hh
"
18
19
// an instance of the class describes a packet
20
21
class
XrdMonSndPacket
{
22
public
:
23
XrdMonSndPacket
();
24
XrdMonSndPacket
(
const
XrdMonSndPacket
& p);
25
~XrdMonSndPacket
();
26
27
kXR_int32
size
()
const
{
return
_size
; }
28
const
char
*
data
()
const
{
return
_data
; }
29
30
char
*
offset
(
kXR_int32
x) {
return
_data
+x; }
31
32
int
init
(
packetlen_t
newSize);
33
void
reset
();
34
35
private
:
36
kXR_int32
_size
;
37
char
*
_data
;
38
};
39
40
#endif
/* XRDMONSNDPACKET_HH */
Generated by
1.8.3.1