![]() |
XRootD
|
#include <XrdInet.hh>
Public Member Functions | |
XrdInet (XrdSysError *erp, XrdNetSecurity *secp=0) | |
~XrdInet () | |
XrdLink * | Accept (int opts=0, int timeout=-1, XrdSysSemaphore *theSem=0) |
int | BindSD (int port, const char *contype="tcp") |
XrdLink * | Connect (const char *host, int port, int opts=0, int timeout=-1) |
void | Secure (XrdNetSecurity *secp) |
![]() | |
XrdNet (XrdSysError *erp, XrdNetSecurity *secp=0) | |
virtual | ~XrdNet () |
Destructor. More... | |
int | Accept (XrdNetAddr &myAddr, int opts=0, int timeout=-1) |
int | Accept (XrdNetPeer &myPeer, int opts=0, int timeout=-1) |
int | Bind (char *path, const char *contype="stream") |
int | Bind (int port, const char *contype="tcp") |
int | Connect (XrdNetAddr &myAddr, const char *dest, int port=-1, int opts=0, int timeout=-1) |
int | Connect (XrdNetPeer &myPeer, const char *dest, int port=-1, int opts=0, int timeout=-1) |
int | Port () |
int | Relay (const char *dest) |
int | Relay (XrdNetPeer &Peer, const char *dest, int opts=0) |
void | setDefaults (int options, int buffsz=0) |
void | setDomain (const char *dname) |
void | Trim (char *hname) |
void | unBind () |
Unbind the network from any bound resouces. More... | |
int | WSize () |
Static Public Member Functions | |
static bool | GetAssumeV4 () |
static void | SetAssumeV4 (bool newVal) |
Static Public Attributes | |
static XrdNetIF | netIF |
Additional Inherited Members | |
![]() | |
XrdNetBufferQ * | BuffQ |
int | BuffSize |
char * | Domain |
int | Domlen |
XrdSysError * | eDest |
int | iofd |
int | netOpts |
XrdNetSecurity * | Police |
int | Portnum |
int | PortType |
int | Windowsz |
Definition at line 47 of file XrdInet.hh.
|
inline |
Definition at line 59 of file XrdInet.hh.
|
inline |
Definition at line 61 of file XrdInet.hh.
XrdLink * XrdInet::Accept | ( | int | opts = 0 , |
int | timeout = -1 , |
||
XrdSysSemaphore * | theSem = 0 |
||
) |
Definition at line 72 of file XrdInet.cc.
References XrdNet::Accept(), XrdLinkCtl::Alloc(), XrdNetSecurity::Authorize(), close, XrdNet::eDest, XrdSysError::Emsg(), XrdNetAddrInfo::fmtAuto, XrdNetAddrInfo::Format(), XrdNetAddrInfo::Name(), XrdNet::netOpts, XrdNetAddrInfo::noPort, opts, XrdNet::Portnum, XrdSysSemaphore::Post(), XrdNetAddrInfo::SockFD(), TRACE, XRDLINK_RDLOCK, XRDNET_MULTREAD, and XRDNET_NORLKUP.
Referenced by XrdMain::DoIt(), and mainAdmin().
int XrdInet::BindSD | ( | int | port, |
const char * | contype = "tcp" |
||
) |
Definition at line 130 of file XrdInet.cc.
References XrdNet::Bind(), XrdNet::BuffQ, XrdNet::BuffSize, XrdNet::eDest, XrdNet::iofd, XrdNetAddr::IPV4Set(), XrdNet::netOpts, opts, XrdNet::Portnum, XrdNet::PortType, XrdNetSocket::setOpts(), XrdNet::Windowsz, XRDNET_SERVER, XRDNET_UDPBUFFSZ, and XRDNET_UDPSOCKET.
XrdLink * XrdInet::Connect | ( | const char * | host, |
int | port, | ||
int | opts = 0 , |
||
int | timeout = -1 |
||
) |
Definition at line 185 of file XrdInet.cc.
References XrdLinkCtl::Alloc(), close, XrdNet::Connect(), XrdNet::eDest, XrdSysError::Emsg(), XrdNetAddrInfo::Name(), opts, XrdNetAddrInfo::SockFD(), TRACE, XRDLINK_RDLOCK, and XRDNET_MULTREAD.
|
inlinestatic |
Definition at line 65 of file XrdInet.hh.
|
virtual |
Add a NetSecurity object to the existing accept() security constraints.
secp | Pointer to the network security object. This object must not be deleted nor directly used after the call as this object assumes its ownership and may delete it at any time. |
Reimplemented from XrdNet.
Definition at line 244 of file XrdInet.cc.
References XrdNetSecurity::Merge().
Referenced by XrdgetProtocol().
|
inlinestatic |
Definition at line 63 of file XrdInet.hh.
|
static |
Definition at line 68 of file XrdInet.hh.
Referenced by XrdXrootdProtocol::Configure(), and XrdConfig::Configure().