|
XRootD
|
#include <XrdNetMsg.hh>
Collaboration diagram for XrdNetMsg:Public Member Functions | |
| XrdNetMsg (XrdSysError *erp, const char *dest=0, bool *aOK=0, bool refr=false) | |
| ~XrdNetMsg () | |
| Destructor. More... | |
| int | Send (const char *buff, int blen=0, const char *dest=0, int tmo=-1) |
| int | Send (const char *dest, const XrdNetSockAddr &netSA, const char *buff, int blen=0, int tmo=-1) |
| int | Send (const struct iovec iov[], int iovcnt, const char *dest=0, int tmo=-1) |
Protected Member Functions | |
| int | OK2Send (int timeout, const char *dest) |
| int | retErr (int ecode, const char *theDest) |
| int | retErr (int ecode, XrdNetAddr &theDest) |
Protected Attributes | |
| bool | destOK = false |
| char * | dfltDest |
| XrdSysError * | eDest |
| int | FD = -1 |
| bool | isRefr = false |
Definition at line 49 of file XrdNetMsg.hh.
| XrdNetMsg::XrdNetMsg | ( | XrdSysError * | erp, |
| const char * | dest = 0, |
||
| bool * | aOK = 0, |
||
| bool | refr = false |
||
| ) |
Constructor
| erp | The error message object for routing error messages. |
| dest | The endpint name which can be host:port or a named socket. This becomes the default endpoint. Any specified endpoint to send must be in the same family (e.g. UNIX). If not specified, then an endpoint must always be specified with send and is restricted to be in the INET family. |
| aOK | If supplied, set to true upon success; false otherwise. |
| refr | When true, registers to socket for address refresh. This is done by periodically (as specified by the xrd.network directive) retranslating the dest host name to see if its IP address changed and if it did, updating the IP address. This option is ignored if dest is null (i.e. unspecified). |
Definition at line 47 of file XrdNetMsg.cc.
References destOK, dfltDest, eDest, XrdSysError::Emsg(), FD, XrdNetPeer::fd, XrdNetPeer::InetName, XrdNetRefresh::Register(), XrdNet::Relay(), XrdNetAddr::Set(), and XRDNET_SENDONLY.
Here is the call graph for this function:| XrdNetMsg::~XrdNetMsg | ( | ) |
Destructor.
Definition at line 107 of file XrdNetMsg.cc.
References close, dfltDest, eDest, XrdSysError::Emsg(), FD, isRefr, and XrdNetRefresh::UnRegister().
Here is the call graph for this function:
|
protected |
Definition at line 241 of file XrdNetMsg.cc.
References eDest, XrdSysError::Emsg(), and FD.
Referenced by Send().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 260 of file XrdNetMsg.cc.
References destOK, dfltDest, eDest, and XrdSysError::Emsg().
Referenced by retErr(), and Send().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 271 of file XrdNetMsg.cc.
References XrdNetAddrInfo::Name(), and retErr().
Here is the call graph for this function:| int XrdNetMsg::Send | ( | const char * | buff, |
| int | blen = 0, |
||
| const char * | dest = 0, |
||
| int | tmo = -1 |
||
| ) |
Send a UDP message to an endpoint.
| buff | The data to send. |
| blen | Length of the data in buff. If not specified, the length is computed as strlen(buff). |
| dest | The endpint name which can be host:port or a named socket. If dest is zero, uses dest specified in the constructor. |
| tmo | maximum seconds to wait for a idle socket. When negative, the default, no time limit applies. |
Definition at line 127 of file XrdNetMsg.cc.
References destOK, dfltDest, eDest, XrdSysError::Emsg(), FD, OK2Send(), retErr(), XrdNetAddr::Set(), XrdNetAddrInfo::SockAddr(), XrdNetAddrInfo::SockSize(), and Sokdata_t.
Referenced by XrdXrootdGSReal::GetDictID(), XrdXrootdGSReal::Ident(), XrdCmsPrepare::Inform(), XrdFrcReqAgent::Ping(), XrdStats::Report(), and XrdXrootdMonitor::Send().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdNetMsg::Send | ( | const char * | dest, |
| const XrdNetSockAddr & | netSA, | ||
| const char * | buff, | ||
| int | blen = 0, |
||
| int | tmo = -1 |
||
| ) |
Send a UDP message to an endpoint.
| buff | The data to send. |
| blen | Length of the data in buff. If not specified, the length is computed as strlen(buff). |
| dest | The endpoint in the form as in "host:port". This is strictly used for error messages. |
| netSA | The endpoint address. This overrides the constructor. The family must be AF_INET or AF_INET6. |
| tmo | maximum seconds to wait for a idle socket. When negative, the default, no time limit applies. |
Definition at line 168 of file XrdNetMsg.cc.
References XrdNetSockAddr::Addr, FD, OK2Send(), retErr(), Sokdata_t, XrdNetSockAddr::v4, and XrdNetSockAddr::v6.
Here is the call graph for this function:| int XrdNetMsg::Send | ( | const struct iovec | iov[], |
| int | iovcnt, | ||
| const char * | dest = 0, |
||
| int | tmo = -1 |
||
| ) |
Send a UDP message to an endpoint using an I/O vector.
| iov | The vector of data to send. Total amount be <= 4096 bytes. |
| iovcnt | The number of elements in the vector. |
| dest | The endpint name which can be host:port or a named socket. If dest is zero, uses dest specified in the constructor. |
| tmo | maximum seconds to wait for a idle socket. When negative, the default, no time limit applies. |
Definition at line 190 of file XrdNetMsg.cc.
References destOK, dfltDest, eDest, XrdSysError::Emsg(), FD, OK2Send(), retErr(), XrdNetAddr::Set(), XrdNetAddrInfo::SockAddr(), XrdNetAddrInfo::SockSize(), and writev().
Here is the call graph for this function:
|
protected |
Definition at line 148 of file XrdNetMsg.hh.
Referenced by XrdNetMsg(), retErr(), and Send().
|
protected |
Definition at line 146 of file XrdNetMsg.hh.
Referenced by XrdNetMsg(), ~XrdNetMsg(), retErr(), and Send().
|
protected |
Definition at line 145 of file XrdNetMsg.hh.
Referenced by XrdNetMsg(), ~XrdNetMsg(), OK2Send(), retErr(), and Send().
|
protected |
Definition at line 147 of file XrdNetMsg.hh.
Referenced by XrdNetMsg(), ~XrdNetMsg(), OK2Send(), and Send().
|
protected |
Definition at line 149 of file XrdNetMsg.hh.
Referenced by ~XrdNetMsg().