xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdMon
XrdMonCtrPacket.hh
Go to the documentation of this file.
1
/*****************************************************************************/
2
/* */
3
/* XrdMonCtrPacket.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
#ifndef XRDMONCTRPACKET_HH
12
#define XRDMONCTRPACKET_HH
13
14
#include <stdlib.h>
15
#include <string.h>
16
#include <arpa/inet.h>
17
#include <netinet/in.h>
18
19
// struct carries contents of one packet and its sender
20
struct
XrdMonCtrPacket
{
21
XrdMonCtrPacket
(
int
size) :
buf
( (char*)malloc(size) ) {
22
memset((
char
*)
buf
, 0, size);
23
}
24
~XrdMonCtrPacket
() {
25
free(
buf
);
26
}
27
char
*
buf
;
28
struct
sockaddr_in
sender
;
29
};
30
31
#endif
/* XRDMONCTRPACKET_HH */
Generated by
1.8.3.1