#include <XrdNet.hh>
|
| 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 () |
| |
| int XrdNet::Accept |
( |
XrdNetPeer & |
myPeer, |
|
|
int |
opts = 0, |
|
|
int |
timeout = -1 |
|
) |
| |
References do_Accept_TCP(), do_Accept_UDP(), Domain, eDest, XrdSysError::Emsg(), XrdNetPeer::InetName, iofd, PortType, Trim(), XRDNET_NODNTRIM, and XRDNET_NOEMSG.
Referenced by XrdInet::Accept(), and XrdNetWork::Accept().
| int XrdNet::Bind |
( |
int |
port, |
|
|
const char * |
contype = "tcp" |
|
) |
| |
References BuffQ, BuffSize, XrdNetSocket::Detach(), eDest, XrdSysDNS::getPort(), iofd, XrdNetSocket::LastError(), netOpts, XrdNetSocket::Open(), opts, Portnum, PortType, unBind(), Windowsz, XRDNET_SERVER, XRDNET_UDPBUFFSZ, and XRDNET_UDPSOCKET.
Referenced by XrdConfig::Setup().
| int XrdNet::Bind |
( |
char * |
path, |
|
|
const char * |
contype = "stream" |
|
) |
| |
References BuffQ, BuffSize, XrdNetSocket::Detach(), eDest, XrdSysError::Emsg(), iofd, XrdNetSocket::LastError(), netOpts, XrdNetSocket::Open(), opts, PortType, unBind(), Windowsz, XRDNET_SERVER, XRDNET_UDPBUFFSZ, and XRDNET_UDPSOCKET.
| int XrdNet::Connect |
( |
XrdNetPeer & |
myPeer, |
|
|
const char * |
host, |
|
|
int |
port, |
|
|
int |
opts = 0, |
|
|
int |
timeout = -1 |
|
) |
| |
References XrdNetSocket::Detach(), Domain, eDest, XrdNetPeer::fd, XrdNetPeer::InetAddr, XrdNetPeer::InetName, netOpts, XrdNetSocket::Open(), XrdNetSocket::Peername(), Trim(), Windowsz, XRDNET_NODNTRIM, XRDNET_NOEMSG, XRDNET_TOUT, XRDNET_UDPBUFFSZ, and XRDNET_UDPSOCKET.
Referenced by XrdInet::Connect(), XrdNetWork::Connect(), XrdNetWork::Relay(), and Relay().
| int XrdNet::do_Accept_TCP |
( |
XrdNetPeer & |
myPeer, |
|
|
int |
opts |
|
) |
| |
|
private |
References XrdNetSecurity::Authorize(), close(), eDest, XrdSysError::Emsg(), XrdNetPeer::fd, XrdSysDNS::getHostID(), XrdSysDNS::getHostName(), XrdNetPeer::InetAddr, XrdNetPeer::InetName, iofd, netOpts, Police, XrdNetSocket::setOpts(), SOCKLEN_t, and XRDNET_NORLKUP.
Referenced by Accept().
| int XrdNet::do_Accept_UDP |
( |
XrdNetPeer & |
myPeer, |
|
|
int |
opts |
|
) |
| |
|
private |
References XrdNetBufferQ::Alloc(), XrdNetSecurity::Authorize(), BuffQ, BuffSize, XrdNetBuffer::data, eDest, XrdSysError::Emsg(), XrdNetPeer::fd, XrdSysDNS::getHostID(), XrdSysDNS::getHostName(), XrdNetPeer::InetAddr, XrdNetPeer::InetBuff, XrdNetPeer::InetName, iofd, XrdSysDNS::isLoopback(), Police, XrdNetBufferQ::Recycle(), XrdNetBuffer::Recycle(), SOCKLEN_t, Sokdata_t, XRDNET_NEWFD, and XRDNET_NORLKUP.
Referenced by Accept().
| int XrdNet::Relay |
( |
XrdNetPeer & |
Peer, |
|
|
const char * |
dest, |
|
|
int |
opts = 0 |
|
) |
| |
| void XrdNet::setDefaults |
( |
int |
options, |
|
|
int |
buffsz = 0 |
|
) |
| |
|
inline |
| void XrdNet::setDomain |
( |
const char * |
dname | ) |
|
|
inline |
| void XrdNet::Trim |
( |
char * |
hname | ) |
|
Referenced by XrdInet::Accept(), XrdNetWork::Accept(), Accept(), Bind(), XrdInet::Connect(), XrdNetWork::Connect(), Connect(), do_Accept_TCP(), do_Accept_UDP(), XrdNetWork::Relay(), WSize(), and XrdNet().
Referenced by XrdInet::Accept(), XrdNetWork::Accept(), Accept(), Bind(), XrdInet::Connect(), do_Accept_TCP(), do_Accept_UDP(), XrdNetWork::Relay(), unBind(), WSize(), and XrdNet().
The documentation for this class was generated from the following files: