xrootd
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
XrdNet Class Reference

#include <XrdNet.hh>

Inheritance diagram for XrdNet:
Inheritance graph
[legend]
Collaboration diagram for XrdNet:
Collaboration graph
[legend]

Public Member Functions

int Accept (XrdNetPeer &myPeer, int opts=0, int timeout=-1)
 
int Bind (int port, const char *contype="tcp")
 
int Bind (char *path, const char *contype="stream")
 
int Connect (XrdNetPeer &myPeer, const char *host, int port, int opts=0, int timeout=-1)
 
int Relay (XrdNetPeer &Peer, const char *dest, int opts=0)
 
int Port ()
 
void Secure (XrdNetSecurity *secp)
 
void setDefaults (int options, int buffsz=0)
 
void setDomain (const char *dname)
 
void Trim (char *hname)
 
void unBind ()
 
int WSize ()
 
 XrdNet (XrdSysError *erp, XrdNetSecurity *secp=0)
 
 ~XrdNet ()
 

Protected Attributes

XrdSysErroreDest
 
XrdNetSecurityPolice
 
char * Domain
 
int Domlen
 
int iofd
 
int Portnum
 
int PortType
 
int Windowsz
 
int netOpts
 
int BuffSize
 
XrdNetBufferQBuffQ
 

Private Member Functions

int do_Accept_TCP (XrdNetPeer &myPeer, int opts)
 
int do_Accept_UDP (XrdNetPeer &myPeer, int opts)
 

Constructor & Destructor Documentation

XrdNet::XrdNet ( XrdSysError erp,
XrdNetSecurity secp = 0 
)
XrdNet::~XrdNet ( )

References Domain, and unBind().

Member Function Documentation

int XrdNet::Accept ( XrdNetPeer myPeer,
int  opts = 0,
int  timeout = -1 
)
int XrdNet::Bind ( int  port,
const char *  contype = "tcp" 
)
int XrdNet::Bind ( char *  path,
const char *  contype = "stream" 
)
int XrdNet::Connect ( XrdNetPeer myPeer,
const char *  host,
int  port,
int  opts = 0,
int  timeout = -1 
)
int XrdNet::do_Accept_TCP ( XrdNetPeer myPeer,
int  opts 
)
private
int XrdNet::do_Accept_UDP ( XrdNetPeer myPeer,
int  opts 
)
private
int XrdNet::Port ( )
inline

References Portnum.

Referenced by main(), XrdConfig::Setup(), and XrdgetProtocol().

int XrdNet::Relay ( XrdNetPeer Peer,
const char *  dest,
int  opts = 0 
)
void XrdNet::Secure ( XrdNetSecurity secp)

References XrdNetSecurity::Merge(), and Police.

Referenced by XrdgetProtocol().

void XrdNet::setDefaults ( int  options,
int  buffsz = 0 
)
inline

References netOpts, and Windowsz.

Referenced by XrdConfig::Setup().

void XrdNet::setDomain ( const char *  dname)
inline

References Domain, and Domlen.

Referenced by XrdConfig::Setup().

void XrdNet::Trim ( char *  hname)

References Domain, and Domlen.

Referenced by Accept(), XrdNetLink::Alloc(), XrdLink::Alloc(), and Connect().

void XrdNet::unBind ( )

References BuffQ, close(), iofd, and Portnum.

Referenced by Bind(), and ~XrdNet().

int XrdNet::WSize ( )

References eDest, XrdNetSocket::getWindow(), and iofd.

Referenced by XrdConfig::Setup().

Member Data Documentation

XrdNetBufferQ* XrdNet::BuffQ
protected
int XrdNet::BuffSize
protected

Referenced by Bind(), and do_Accept_UDP().

char* XrdNet::Domain
protected
int XrdNet::Domlen
protected

Referenced by setDomain(), Trim(), and XrdNet().

XrdSysError* XrdNet::eDest
protected
int XrdNet::iofd
protected
int XrdNet::netOpts
protected
XrdNetSecurity* XrdNet::Police
protected
int XrdNet::Portnum
protected

Referenced by Bind(), Port(), unBind(), and XrdNet().

int XrdNet::PortType
protected

Referenced by Accept(), Bind(), and XrdNet().

int XrdNet::Windowsz
protected

Referenced by Bind(), Connect(), setDefaults(), and XrdNet().


The documentation for this class was generated from the following files: