|
xrootd
|
#include <XrdNet.hh>


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 | |
| XrdSysError * | eDest |
| XrdNetSecurity * | Police |
| char * | Domain |
| int | Domlen |
| int | iofd |
| int | Portnum |
| int | PortType |
| int | Windowsz |
| int | netOpts |
| int | BuffSize |
| XrdNetBufferQ * | BuffQ |
Private Member Functions | |
| int | do_Accept_TCP (XrdNetPeer &myPeer, int opts) |
| int | do_Accept_UDP (XrdNetPeer &myPeer, int opts) |
| XrdNet::XrdNet | ( | XrdSysError * | erp, |
| XrdNetSecurity * | secp = 0 |
||
| ) |
| 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, poll(), POLLHUP, POLLIN, POLLPRI, POLLRDBAND, POLLRDNORM, PortType, Trim(), XRDNET_NODNTRIM, and XRDNET_NOEMSG.
Referenced by XrdNetWork::Accept(), and XrdInet::Accept().
| int XrdNet::Bind | ( | int | port, |
| const char * | contype = "tcp" |
||
| ) |
References BuffQ, BuffSize, XrdNetSocket::Detach(), eDest, XrdNetDNS::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" |
||
| ) |
| 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 XrdNetWork::Connect(), XrdInet::Connect(), XrdNetWork::Relay(), and Relay().
| int XrdNet::do_Accept_TCP | ( | XrdNetPeer & | myPeer, |
| int | opts | ||
| ) | [private] |
References XrdNetSecurity::Authorize(), close, eDest, XrdSysError::Emsg(), XrdNetPeer::fd, XrdNetDNS::getHostID(), XrdNetDNS::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, XrdNetDNS::getHostID(), XrdNetDNS::getHostName(), XrdNetPeer::InetAddr, XrdNetPeer::InetBuff, XrdNetPeer::InetName, iofd, XrdNetDNS::isLoopback(), Police, XrdNetBuffer::Recycle(), XrdNetBufferQ::Recycle(), SOCKLEN_t, Sokdata_t, XRDNET_NEWFD, and XRDNET_NORLKUP.
Referenced by Accept().
| int XrdNet::Port | ( | ) | [inline] |
References Portnum.
Referenced by mainAccept(), XrdOucAvahiBonjour::RegisterService(), XrdOucAppleBonjour::RegisterService(), XrdConfig::Setup(), and XrdgetProtocol().
| int XrdNet::Relay | ( | XrdNetPeer & | Peer, |
| const char * | dest, | ||
| int | opts = 0 |
||
| ) |
References Connect(), and XRDNET_UDPSOCKET.
Referenced by XrdXrootdMonitor::Init(), XrdFrmMonitor::Init(), and XrdNetMsg::XrdNetMsg().
| 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 | ( | ) |
| int XrdNet::WSize | ( | ) |
References eDest, XrdNetSocket::getWindow(), and iofd.
Referenced by XrdConfig::Setup().
XrdNetBufferQ* XrdNet::BuffQ [protected] |
Referenced by XrdNetWork::Accept(), Bind(), XrdNetWork::Connect(), do_Accept_UDP(), XrdNetWork::Relay(), unBind(), and XrdNet().
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] |
Referenced by XrdNetWork::Accept(), Accept(), XrdInet::Accept(), Bind(), XrdNetWork::Connect(), Connect(), XrdInet::Connect(), do_Accept_TCP(), do_Accept_UDP(), XrdNetWork::Relay(), WSize(), and XrdNet().
int XrdNet::iofd [protected] |
Referenced by XrdNetWork::Accept(), Accept(), XrdInet::Accept(), Bind(), XrdInet::Connect(), do_Accept_TCP(), do_Accept_UDP(), XrdNetWork::Relay(), unBind(), WSize(), and XrdNet().
int XrdNet::netOpts [protected] |
Referenced by XrdInet::Accept(), Bind(), Connect(), do_Accept_TCP(), setDefaults(), and XrdNet().
XrdNetSecurity* XrdNet::Police [protected] |
Referenced by do_Accept_TCP(), do_Accept_UDP(), Secure(), and XrdNet().
int XrdNet::Portnum [protected] |
int XrdNet::PortType [protected] |
int XrdNet::Windowsz [protected] |
Referenced by Bind(), Connect(), setDefaults(), and XrdNet().
1.7.3