#include <XrdNetMsg.hh>
|
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) |
|
| XrdNetMsg (XrdSysError *erp, const char *dest=0, bool *aOK=0) |
|
| ~XrdNetMsg () |
| Destructor.
|
|
◆ XrdNetMsg()
XrdNetMsg::XrdNetMsg |
( |
XrdSysError * |
erp, |
|
|
const char * |
dest = 0 , |
|
|
bool * |
aOK = 0 |
|
) |
| |
Constructor
- Parameters
-
erp | The error message object for routing error messages. |
aOK | If supplied, set to true upon success; false otherwise. |
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. |
◆ ~XrdNetMsg()
XrdNetMsg::~XrdNetMsg |
( |
| ) |
|
|
inline |
Destructor.
References close, and FD.
◆ OK2Send()
int XrdNetMsg::OK2Send |
( |
int |
timeout, |
|
|
const char * |
dest |
|
) |
| |
|
protected |
◆ retErr() [1/2]
int XrdNetMsg::retErr |
( |
int |
ecode, |
|
|
const char * |
theDest |
|
) |
| |
|
protected |
◆ retErr() [2/2]
int XrdNetMsg::retErr |
( |
int |
ecode, |
|
|
XrdNetAddr * |
theDest |
|
) |
| |
|
protected |
◆ Send() [1/3]
int XrdNetMsg::Send |
( |
const char * |
buff, |
|
|
int |
blen = 0 , |
|
|
const char * |
dest = 0 , |
|
|
int |
tmo = -1 |
|
) |
| |
Send a UDP message to an endpoint.
- Parameters
-
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. |
- Returns
- <0 Message not sent due to error.
-
=0 Message send (well as defined by UDP)
-
>0 Message not sent, timeout occurred.
◆ Send() [2/3]
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.
- Parameters
-
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". |
netSA | The endpoint address. This overrides the constructor. |
tmo | maximum seconds to wait for a idle socket. When negative, the default, no time limit applies. |
- Returns
- <0 Message not sent due to error.
-
=0 Message send (well as defined by UDP)
-
>0 Message not sent, timeout occurred.
◆ Send() [3/3]
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.
- Parameters
-
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. |
- Returns
- <0 Message not sent due to error.
-
=0 Message send (well as defined by UDP)
-
>0 Message not sent, timeout occurred.
◆ destOK
◆ dfltDest
◆ eDest
◆ FD
◆ specDest
The documentation for this class was generated from the following file: