xrootd
XrdMonSndTransmitter.hh
Go to the documentation of this file.
1 /*****************************************************************************/
2 /* */
3 /* XrdMonSndTransmitter.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 XRDMONSNDTRANSMITTER_HH
14 #define XRDMONSNDTRANSMITTER_HH
15 
17 #include <netinet/in.h>
19 
20 #include <arpa/inet.h>
21 
23 public:
25 
26  int initialize(const char* receiverHost,
27  kXR_int16 receiverPort);
28  int operator()(const XrdMonSndPacket& packet);
29  void shutdown();
30 
31 private:
32  bool messThingsUp(const XrdMonSndPacket& packet, int packetNo);
33 
34 private:
35  int _socket;
36  struct sockaddr_in _sAddress;
37 };
38 
39 #endif /* XRDMONSNDTRANSMITTER_HH */