xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdNet
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
19
class
XrdNetPeer
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
28
XrdNetPeer
() {
InetName
= 0;
InetBuff
= 0;}
29
~XrdNetPeer
() {
if
(
InetName
) free(
InetName
);
30
if
(
InetBuff
)
InetBuff
->
Recycle
();
31
}
32
};
33
#endif
Generated by
1.8.1.2