Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
XrdClientSock Class Reference

Definition at line 50 of file XrdClientSock.hh.

Public Types

typedef int Sockdescr
 
typedef int Sockid
 

Public Member Functions

 XrdClientSock (XrdClientUrlInfo host, int windowsize=0, int fd=-1)
 Construct a socket helper.
 
virtual ~XrdClientSock ()
 
virtual void BanSockDescr (Sockdescr, Sockid)
 
virtual void Disconnect ()
 
virtual int EstablishParallelSock (Sockid, Sockid)
 
virtual int GetSockIdCount ()
 
virtual Sockid GetSockIdHint (int)
 
bool IsConnected ()
 
virtual void PauseSelectOnSubstream (Sockid)
 
virtual int RecvRaw (void *buffer, int length, Sockid substreamid=-1, Sockid *usedsubstreamid=0)
 
void ReinitFDTable ()
 
virtual int RemoveParallelSock (Sockid)
 
virtual void RestartSelectOnSubstream (Sockid)
 
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 void UnBanSockDescr (Sockdescr)
 

Protected Member Functions

virtual int SaveSocket ()
 
virtual int SendRaw_sock (const void *buffer, int length, Sockdescr sock)
 
void SetInterrupt (int which=0)
 
int TryConnect_low (bool isUnix=0, int altport=0, int windowsz=0)
 

Protected Attributes

bool fConnected
 
XrdClientSockConnectParms fHost
 
bool fRDInterrupt
 
bool fReinit_fd
 
int fRequestTimeout
 
bool fWRInterrupt
 

Private Attributes

int fSocket
 

Friends

class XrdClientPhyConnection
 

#include </home/sftnight/build/workspace/root-makedoc-v628/rootspi/rdoc/src/v6-28-00-patches/proof/xrdinc/XrdClient/XrdClientSock.hh>

Member Typedef Documentation

◆ Sockdescr

Definition at line 53 of file XrdClientSock.hh.

◆ Sockid

Definition at line 52 of file XrdClientSock.hh.

Constructor & Destructor Documentation

◆ XrdClientSock()

XrdClientSock::XrdClientSock ( XrdClientUrlInfo  host,
int  windowsize = 0,
int  fd = -1 
)

Construct a socket helper.

Parameters
hostRemote location to connect to
windowsizeTCP window size: 0 for OS defaults or the ENV setting
fdA descriptor pointing to an already connected socket, -1 if not available

◆ ~XrdClientSock()

virtual XrdClientSock::~XrdClientSock ( )
virtual

Member Function Documentation

◆ BanSockDescr()

virtual void XrdClientSock::BanSockDescr ( Sockdescr  ,
Sockid   
)
inlinevirtual

Definition at line 99 of file XrdClientSock.hh.

◆ Disconnect()

virtual void XrdClientSock::Disconnect ( )
virtual

◆ EstablishParallelSock()

virtual int XrdClientSock::EstablishParallelSock ( Sockid  ,
Sockid   
)
inlinevirtual

Definition at line 137 of file XrdClientSock.hh.

◆ GetSockIdCount()

virtual int XrdClientSock::GetSockIdCount ( )
inlinevirtual

Definition at line 147 of file XrdClientSock.hh.

◆ GetSockIdHint()

virtual Sockid XrdClientSock::GetSockIdHint ( int  )
inlinevirtual

Definition at line 142 of file XrdClientSock.hh.

◆ IsConnected()

bool XrdClientSock::IsConnected ( )
inline

Definition at line 146 of file XrdClientSock.hh.

◆ PauseSelectOnSubstream()

virtual void XrdClientSock::PauseSelectOnSubstream ( Sockid  )
inlinevirtual

Definition at line 148 of file XrdClientSock.hh.

◆ RecvRaw()

virtual int XrdClientSock::RecvRaw ( void *  buffer,
int  length,
Sockid  substreamid = -1,
Sockid usedsubstreamid = 0 
)
virtual

◆ ReinitFDTable()

void XrdClientSock::ReinitFDTable ( )
inline

Definition at line 103 of file XrdClientSock.hh.

◆ RemoveParallelSock()

virtual int XrdClientSock::RemoveParallelSock ( Sockid  )
inlinevirtual

Definition at line 139 of file XrdClientSock.hh.

◆ RestartSelectOnSubstream()

virtual void XrdClientSock::RestartSelectOnSubstream ( Sockid  )
inlinevirtual

Definition at line 149 of file XrdClientSock.hh.

◆ SaveSocket()

virtual int XrdClientSock::SaveSocket ( )
inlineprotectedvirtual

Definition at line 75 of file XrdClientSock.hh.

◆ SendRaw()

virtual int XrdClientSock::SendRaw ( const void *  buffer,
int  length,
Sockid  substreamid = 0 
)
virtual

◆ SendRaw_sock()

virtual int XrdClientSock::SendRaw_sock ( const void *  buffer,
int  length,
Sockdescr  sock 
)
protectedvirtual

◆ SetInterrupt()

void XrdClientSock::SetInterrupt ( int  which = 0)
inlineprotected

Definition at line 78 of file XrdClientSock.hh.

◆ SetRequestTimeout()

void XrdClientSock::SetRequestTimeout ( int  timeout = -1)

◆ Socks4Handshake()

virtual int XrdClientSock::Socks4Handshake ( Sockid  sockid)
virtual

◆ TryConnect()

virtual void XrdClientSock::TryConnect ( bool  isUnix = 0)
virtual

◆ TryConnect_low()

int XrdClientSock::TryConnect_low ( bool  isUnix = 0,
int  altport = 0,
int  windowsz = 0 
)
protected

◆ TryConnectParallelSock()

virtual Sockdescr XrdClientSock::TryConnectParallelSock ( int  ,
int  ,
Sockid  
)
inlinevirtual

Definition at line 132 of file XrdClientSock.hh.

◆ UnBanSockDescr()

virtual void XrdClientSock::UnBanSockDescr ( Sockdescr  )
inlinevirtual

Definition at line 100 of file XrdClientSock.hh.

Friends And Related Symbol Documentation

◆ XrdClientPhyConnection

friend class XrdClientPhyConnection
friend

Definition at line 55 of file XrdClientSock.hh.

Member Data Documentation

◆ fConnected

bool XrdClientSock::fConnected
protected

Definition at line 67 of file XrdClientSock.hh.

◆ fHost

XrdClientSockConnectParms XrdClientSock::fHost
protected

Definition at line 65 of file XrdClientSock.hh.

◆ fRDInterrupt

bool XrdClientSock::fRDInterrupt
protected

Definition at line 68 of file XrdClientSock.hh.

◆ fReinit_fd

bool XrdClientSock::fReinit_fd
protected

Definition at line 73 of file XrdClientSock.hh.

◆ fRequestTimeout

int XrdClientSock::fRequestTimeout
protected

Definition at line 64 of file XrdClientSock.hh.

◆ fSocket

int XrdClientSock::fSocket
private

Definition at line 59 of file XrdClientSock.hh.

◆ fWRInterrupt

bool XrdClientSock::fWRInterrupt
protected

Definition at line 69 of file XrdClientSock.hh.

  • proof/xrdinc/XrdClient/XrdClientSock.hh