Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

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 #ifndef XRDMONCTRPACKET_HH
00012 #define XRDMONCTRPACKET_HH
00013 
00014 #include <stdlib.h>
00015 #include <string.h>
00016 #include <arpa/inet.h>
00017 #include <netinet/in.h>
00018 
00019 // struct carries contents of one packet and its sender
00020 struct XrdMonCtrPacket {
00021     XrdMonCtrPacket(int size) : buf( (char*)malloc(size) ) {
00022         memset((char*)buf, 0, size);
00023     }
00024     ~XrdMonCtrPacket() {
00025         free(buf);
00026     }
00027     char* buf;
00028     struct sockaddr_in sender;
00029 };
00030 
00031 #endif /* XRDMONCTRPACKET_HH */

Generated on Sun Nov 6 13:35:16 2011 for xrootd by  doxygen 1.3.9.1