XrdMonCtrPacket.hh

Go to the documentation of this file.
00001 /*****************************************************************************/
00002 /*                                                                           */
00003 /*                            XrdMonCtrPacket.hh                             */
00004 /*                                                                           */
00005 /* (c) 2005 by the Board of Trustees of the Leland Stanford, Jr., University */
00006 /*                            All Rights Reserved                            */
00007 /*       Produced by Jacek Becla for Stanford University under contract      */
00008 /*              DE-AC02-76SF00515 with the Department of Energy              */
00009 /*****************************************************************************/
00010 
00011 // $Id: XrdMonCtrPacket.hh 22437 2008-03-04 14:35:16Z rdm $
00012 
00013 #ifndef XRDMONCTRPACKET_HH
00014 #define XRDMONCTRPACKET_HH
00015 
00016 #include <stdlib.h>
00017 #include <string.h>
00018 #include <arpa/inet.h>
00019 #include <netinet/in.h>
00020 
00021 // struct carries contents of one packet and its sender
00022 struct XrdMonCtrPacket {
00023     XrdMonCtrPacket(int size) : buf( (char*)malloc(size) ) {
00024         memset((char*)buf, size, 0);
00025     }
00026     ~XrdMonCtrPacket() {
00027         free(buf);
00028     }
00029     char* buf;
00030     struct sockaddr_in sender;
00031 };
00032 
00033 #endif /* XRDMONCTRPACKET_HH */

Generated on Tue Jul 5 14:46:41 2011 for ROOT_528-00b_version by  doxygen 1.5.1