#include <XrdClientSock.hh>
|
| | XrdClientSock (XrdClientUrlInfo host, int windowsize=0, int fd=-1) |
| |
| virtual | ~XrdClientSock () |
| |
| virtual void | BanSockDescr (Sockdescr, Sockid) |
| |
| virtual void | UnBanSockDescr (Sockdescr) |
| |
| void | ReinitFDTable () |
| |
| virtual int | RecvRaw (void *buffer, int length, Sockid substreamid=-1, Sockid *usedsubstreamid=0) |
| |
| virtual int | SendRaw (const void *buffer, int length, Sockid substreamid=0) |
| |
| void | SetRequestTimeout (int timeout=-1) |
| |
| virtual int | Socks4Handshake (Sockid sockid) |
| |
| virtual void | TryConnect (bool isUnix=0) |
| |
| virtual Sockdescr | TryConnectParallelSock (int, int, Sockid &) |
| |
| virtual int | EstablishParallelSock (Sockid, Sockid) |
| |
| virtual int | RemoveParallelSock (Sockid) |
| |
| virtual Sockid | GetSockIdHint (int) |
| |
| virtual void | Disconnect () |
| |
| bool | IsConnected () |
| |
| virtual int | GetSockIdCount () |
| |
| virtual void | PauseSelectOnSubstream (Sockid) |
| |
| virtual void | RestartSelectOnSubstream (Sockid) |
| |
| XrdClientSock::XrdClientSock |
( |
XrdClientUrlInfo |
host, |
|
|
int |
windowsize = 0, |
|
|
int |
fd = -1 |
|
) |
| |
Construct a socket helper
- Parameters
-
| host | Remote location to connect to |
| windowSize | TCP window size: 0 for OS defaults or the ENV setting |
| fd | A descriptor pointing to an already connected socket, -1 if not available |
References EnvGetLong, FALSE, fConnected, fHost, fRDInterrupt, fRequestTimeout, fSocket, fWRInterrupt, NAME_REQUESTTIMEOUT, XrdClientSockConnectParms::TcpHost, XrdClientSockConnectParms::TcpWindowSize, and TRUE.
| XrdClientSock::~XrdClientSock |
( |
| ) |
|
|
virtual |
| void XrdClientSock::Disconnect |
( |
| ) |
|
|
virtual |
| virtual int XrdClientSock::EstablishParallelSock |
( |
Sockid |
, |
|
|
Sockid |
|
|
) |
| |
|
inlinevirtual |
| virtual int XrdClientSock::GetSockIdCount |
( |
| ) |
|
|
inlinevirtual |
| virtual Sockid XrdClientSock::GetSockIdHint |
( |
int |
| ) |
|
|
inlinevirtual |
| bool XrdClientSock::IsConnected |
( |
| ) |
|
|
inline |
| virtual void XrdClientSock::PauseSelectOnSubstream |
( |
Sockid |
| ) |
|
|
inlinevirtual |
| int XrdClientSock::RecvRaw |
( |
void * |
buffer, |
|
|
int |
length, |
|
|
Sockid |
substreamid = -1, |
|
|
Sockid * |
usedsubstreamid = 0 |
|
) |
| |
|
virtual |
Reimplemented in XrdClientPSock.
References DebugLevel, Error, FALSE, fConnected, fHost, fRDInterrupt, fRequestTimeout, fSocket, XrdClientUrlInfo::Host, Info, XrdClientDebug::kDUMPDEBUG, XrdClientDebug::kNODEBUG, XrdClientUrlInfo::Port, XrdClientSockConnectParms::TcpHost, TXSOCK_ERR, TXSOCK_ERR_INTERRUPT, and TXSOCK_ERR_TIMEOUT.
Referenced by XrdClientPhyConnection::ReadRaw(), and Socks4Handshake().
| void XrdClientSock::ReinitFDTable |
( |
| ) |
|
|
inline |
| virtual int XrdClientSock::RemoveParallelSock |
( |
Sockid |
| ) |
|
|
inlinevirtual |
| virtual void XrdClientSock::RestartSelectOnSubstream |
( |
Sockid |
| ) |
|
|
inlinevirtual |
| virtual int XrdClientSock::SaveSocket |
( |
| ) |
|
|
inlineprotectedvirtual |
| int XrdClientSock::SendRaw |
( |
const void * |
buffer, |
|
|
int |
length, |
|
|
Sockid |
substreamid = 0 |
|
) |
| |
|
virtual |
| int XrdClientSock::SendRaw_sock |
( |
const void * |
buffer, |
|
|
int |
length, |
|
|
Sockdescr |
sock |
|
) |
| |
|
protectedvirtual |
References Error, fConnected, fHost, fRequestTimeout, fWRInterrupt, XrdClientUrlInfo::Host, XrdClientUrlInfo::Port, XrdClientSockConnectParms::TcpHost, TXSOCK_ERR, TXSOCK_ERR_INTERRUPT, and TXSOCK_ERR_TIMEOUT.
Referenced by SendRaw().
| void XrdClientSock::SetInterrupt |
( |
int |
which = 0 | ) |
|
|
inlineprotected |
| void XrdClientSock::SetRequestTimeout |
( |
int |
timeout = -1 | ) |
|
| int XrdClientSock::Socks4Handshake |
( |
Sockid |
sockid | ) |
|
|
virtual |
| void XrdClientSock::TryConnect |
( |
bool |
isUnix = 0 | ) |
|
|
virtual |
| int XrdClientSock::TryConnect_low |
( |
bool |
isUnix = 0, |
|
|
int |
altport = 0, |
|
|
int |
windowsz = 0 |
|
) |
| |
|
protected |
References XrdOucString::c_str(), EnvGetLong, EnvGetString, Error, fConnected, fHost, XrdClientUrlInfo::File, XrdClientUrlInfo::Host, XrdClientUrlInfo::HostAddr, Info, XrdClientDebug::kHIDEBUG, XrdOucString::length(), NAME_CONNECTTIMEOUT, NAME_DFLTTCPWINDOWSIZE, NAME_ENABLE_TCP_KEEPALIVE, NAME_SOCKS4HOST, NAME_SOCKS4PORT, NAME_TCP_KEEPALIVE_INTERVAL, NAME_TCP_KEEPALIVE_PROBES, NAME_TCP_KEEPALIVE_TIME, XrdMonCtrCollector::port, XrdClientUrlInfo::Port, XrdNetSocket::setOpts(), XrdClientSockConnectParms::TcpHost, TRUE, and XRDNET_KEEPALIVE.
Referenced by TryConnect(), XrdClientPSock::TryConnect(), and XrdClientPSock::TryConnectParallelSock().
| virtual Sockdescr XrdClientSock::TryConnectParallelSock |
( |
int |
, |
|
|
int |
, |
|
|
Sockid & |
|
|
) |
| |
|
inlinevirtual |
| virtual void XrdClientSock::UnBanSockDescr |
( |
Sockdescr |
| ) |
|
|
inlinevirtual |
| bool XrdClientSock::fConnected |
|
protected |
Referenced by XrdClientPSock::Disconnect(), Disconnect(), IsConnected(), RecvRaw(), XrdClientPSock::RecvRaw(), SaveSocket(), XrdClientPSock::SaveSocket(), SendRaw_sock(), TryConnect(), XrdClientPSock::TryConnect(), TryConnect_low(), and XrdClientSock().
| bool XrdClientSock::fRDInterrupt |
|
protected |
| bool XrdClientSock::fReinit_fd |
|
protected |
| int XrdClientSock::fRequestTimeout |
|
protected |
| int XrdClientSock::fSocket |
|
private |
| bool XrdClientSock::fWRInterrupt |
|
protected |
The documentation for this class was generated from the following files: