xrootd
XrdNetPeer.hh
Go to the documentation of this file.
1 #ifndef __XRDNETPEER_H__
2 #define __XRDNETPEER_H__
3 /******************************************************************************/
4 /* */
5 /* X r d N e t P e e r . h h */
6 /* */
7 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */
8 /* All Rights Reserved */
9 /* Produced by Andrew Hanushevsky for Stanford University under contract */
10 /* DE-AC02-76-SFO0515 with the Department of Energy */
11 /******************************************************************************/
12 
13 // $Id$
14 
15 #include <stdlib.h>
16 
17 #include "XrdNet/XrdNetBuffer.hh"
18 
20 {
21 public:
22 
23 int fd; // File descriptor
24 struct sockaddr InetAddr; // Incomming peer network address
25 char *InetName; // Incomming peer host name (must be copied)
26 XrdNetBuffer *InetBuff; // Incomming datagram buffer for UDP accepts
27 
29  ~XrdNetPeer() {if (InetName) free(InetName);
30  if (InetBuff) InetBuff->Recycle();
31  }
32 };
33 #endif