XrdClientMessage Class Reference

#include <XrdClientMessage.hh>

List of all members.

Public Types

enum  EXrdMSCStatus

Public Member Functions

 XrdClientMessage (ServerResponseHeader header)
 XrdClientMessage ()
 ~XrdClientMessage ()
bool CreateData ()
int DataLen ()
void * DonateData ()
void * GetData ()
int GetStatusCode ()
int HeaderStatus ()
kXR_unt16 HeaderSID ()
bool IsAttn ()
bool IsError ()
bool IsMarshalled ()
void Marshall ()
bool MatchStreamid (short sid)
int ReadRaw (XrdClientPhyConnection *phy)
void SetHeaderStatus (kXR_unt16 sts)
void SetMarshalled (bool m)
void SetStatusCode (kXR_unt16 status)
void Unmarshall ()

Static Public Member Functions

static kXR_unt16 CharStreamid2Int (kXR_char *charstreamid)
static void Int2CharStreamid (kXR_char *charstreamid, short intstreamid)

Public Attributes

ServerResponseHeader fHdr

Private Attributes

bool fAllocated
void * fData
bool fMarshalled
short fStatusCode
XrdSysRecMutex fMultireadMutex


Detailed Description

Definition at line 30 of file XrdClientMessage.hh.


Member Enumeration Documentation

enum XrdClientMessage::EXrdMSCStatus

Definition at line 44 of file XrdClientMessage.hh.


Constructor & Destructor Documentation

XrdClientMessage::XrdClientMessage ( ServerResponseHeader  header  ) 

Definition at line 29 of file XrdClientMessage.cc.

References CreateData(), Error, fAllocated, fData, fHdr, fMarshalled, fStatusCode, and kXrdMSC_ok.

XrdClientMessage::XrdClientMessage (  ) 

Definition at line 46 of file XrdClientMessage.cc.

References fAllocated, fData, fHdr, fMarshalled, fStatusCode, and kXrdMSC_ok.

XrdClientMessage::~XrdClientMessage (  ) 

Definition at line 58 of file XrdClientMessage.cc.

References fData, and free().


Member Function Documentation

kXR_unt16 XrdClientMessage::CharStreamid2Int ( kXR_char charstreamid  )  [static]

Definition at line 226 of file XrdClientMessage.cc.

Referenced by HeaderSID().

void XrdClientMessage::Int2CharStreamid ( kXR_char charstreamid,
short  intstreamid 
) [static]

Definition at line 217 of file XrdClientMessage.cc.

bool XrdClientMessage::CreateData (  ) 

Definition at line 79 of file XrdClientMessage.cc.

References _SC_PAGESIZE, ServerResponseHeader::dlen, Error, fAllocated, FALSE, fData, fHdr, malloc(), posix_memalign(), sysconf(), and TRUE.

Referenced by ReadRaw(), and XrdClientMessage().

int XrdClientMessage::DataLen (  )  [inline]

Definition at line 60 of file XrdClientMessage.hh.

References ServerResponseHeader::dlen, and fHdr.

Referenced by XrdProofConn::Authenticate(), XrdProofConn::CheckErrorStatus(), XrdClientConn::CheckErrorStatus(), XrdClientConn::ClientServerCmd(), TXSocket::Create(), XrdProofdAdmin::Exec(), XrdProofConn::Login(), XrdClient::ProcessUnsolicitedMsg(), XrdProofdNetMgr::ReadBufferRemote(), XrdProofdNetMgr::ReadLogPaths(), XrdClientConn::ReadPartialAnswer(), TXSocket::SendCoordinator(), and XrdProofConn::SendRecv().

void * XrdClientMessage::DonateData (  ) 

Definition at line 67 of file XrdClientMessage.cc.

References fAllocated, and fData.

Referenced by XrdClientConn::ProcessAsynResp(), XrdClient::ProcessUnsolicitedMsg(), ReadRaw(), and XrdClientReadCache::SubmitXMessage().

void* XrdClientMessage::GetData (  )  [inline]

Definition at line 63 of file XrdClientMessage.hh.

References fData.

Referenced by XrdProofConn::CheckErrorStatus(), XrdClientConn::CheckErrorStatus(), TXSocket::Create(), XrdProofdAdmin::Exec(), ParseRedir(), XrdClientConn::ProcessAsynResp(), XrdClient::ProcessUnsolicitedMsg(), XrdClientAdmin::ProcessUnsolicitedMsg(), XrdClientConn::ReadPartialAnswer(), XrdClientConn::SendGenCommand(), and XrdProofConn::SendRecv().

int XrdClientMessage::GetStatusCode (  )  [inline]

Definition at line 64 of file XrdClientMessage.hh.

References fStatusCode.

Referenced by XrdClientConn::ProcessAsynResp(), XrdClient::ProcessUnsolicitedMsg(), and XrdClientAdmin::ProcessUnsolicitedMsg().

int XrdClientMessage::HeaderStatus (  )  [inline]

Definition at line 66 of file XrdClientMessage.hh.

References fHdr, and ServerResponseHeader::status.

Referenced by XrdProofConn::Authenticate(), XrdProofConn::CheckErrorStatus(), XrdClientConn::CheckErrorStatus(), XrdClientConn::ClientServerCmd(), IsAttn(), TXSocket::Ping(), XrdClient::ProcessUnsolicitedMsg(), XrdClientConn::ReadPartialAnswer(), XrdProofConn::SendRecv(), and XrdClientConn::SubmitDataToCache().

kXR_unt16 XrdClientMessage::HeaderSID (  )  [inline]

Definition at line 68 of file XrdClientMessage.hh.

References CharStreamid2Int(), fHdr, and ServerResponseHeader::streamid.

Referenced by MatchStreamid(), XrdClient::ProcessUnsolicitedMsg(), XrdClientAdmin::ProcessUnsolicitedMsg(), and ReadRaw().

bool XrdClientMessage::IsAttn (  )  [inline]

Definition at line 70 of file XrdClientMessage.hh.

References HeaderStatus(), and kXR_attn.

Referenced by XrdClient::ProcessUnsolicitedMsg(), XrdClientAdmin::ProcessUnsolicitedMsg(), and ReadRaw().

bool XrdClientMessage::IsError (  )  [inline]

Definition at line 72 of file XrdClientMessage.hh.

References fStatusCode, and kXrdMSC_ok.

Referenced by XrdClientConn::HandleServerError(), XrdProofdNetMgr::ReadBufferRemote(), XrdClientConn::ReadPartialAnswer(), XrdClientConn::SendGenCommand(), XrdProofConn::SendRecv(), and XrdProofConn::SendReq().

bool XrdClientMessage::IsMarshalled (  )  [inline]

Definition at line 74 of file XrdClientMessage.hh.

References fMarshalled.

void XrdClientMessage::Marshall (  ) 

Definition at line 114 of file XrdClientMessage.cc.

References fHdr, fMarshalled, ServerResponseHeader2NetFmt(), and TRUE.

bool XrdClientMessage::MatchStreamid ( short  sid  )  [inline]

Definition at line 76 of file XrdClientMessage.hh.

References HeaderSID().

int XrdClientMessage::ReadRaw ( XrdClientPhyConnection phy  ) 

Definition at line 136 of file XrdClientMessage.cc.

References CreateData(), DonateData(), fData, fHdr, free(), HeaderSID(), Info, IsAttn(), XrdClientDebug::kDUMPDEBUG, XrdClientDebug::kNODEBUG, kXrdMSC_readerr, kXrdMSC_timeout, XrdClientPhyConnection::PauseSelectOnSubstream(), XrdClientPhyConnection::ReadLock(), XrdClientPhyConnection::ReadRaw(), XrdClientPhyConnection::ReadUnLock(), XrdClientPhyConnection::RestartSelectOnSubstream(), SetMarshalled(), SetStatusCode(), TRUE, TXSOCK_ERR_TIMEOUT, and Unmarshall().

void XrdClientMessage::SetHeaderStatus ( kXR_unt16  sts  )  [inline]

Definition at line 78 of file XrdClientMessage.hh.

References fHdr, and ServerResponseHeader::status.

void XrdClientMessage::SetMarshalled ( bool  m  )  [inline]

Definition at line 79 of file XrdClientMessage.hh.

References fMarshalled.

Referenced by ReadRaw().

void XrdClientMessage::SetStatusCode ( kXR_unt16  status  )  [inline]

Definition at line 80 of file XrdClientMessage.hh.

References fStatusCode.

Referenced by ReadRaw().

void XrdClientMessage::Unmarshall (  ) 

Definition at line 125 of file XrdClientMessage.cc.

References clientUnmarshall(), FALSE, fHdr, and fMarshalled.

Referenced by XrdClientConn::ReadPartialAnswer(), and ReadRaw().


Member Data Documentation

bool XrdClientMessage::fAllocated [private]

Definition at line 33 of file XrdClientMessage.hh.

Referenced by CreateData(), DonateData(), and XrdClientMessage().

void* XrdClientMessage::fData [private]

Definition at line 34 of file XrdClientMessage.hh.

Referenced by CreateData(), DonateData(), GetData(), ReadRaw(), XrdClientMessage(), and ~XrdClientMessage().

bool XrdClientMessage::fMarshalled [private]

Definition at line 35 of file XrdClientMessage.hh.

Referenced by IsMarshalled(), Marshall(), SetMarshalled(), Unmarshall(), and XrdClientMessage().

short XrdClientMessage::fStatusCode [private]

Definition at line 36 of file XrdClientMessage.hh.

Referenced by GetStatusCode(), IsError(), SetStatusCode(), and XrdClientMessage().

XrdSysRecMutex XrdClientMessage::fMultireadMutex [private]

Definition at line 37 of file XrdClientMessage.hh.

ServerResponseHeader XrdClientMessage::fHdr

Definition at line 51 of file XrdClientMessage.hh.

Referenced by XrdClientConn::ClientServerCmd(), CreateData(), DataLen(), XrdClientConn::HandleServerError(), HeaderSID(), HeaderStatus(), Marshall(), XrdClient::ProcessUnsolicitedMsg(), XrdClientConn::ReadPartialAnswer(), ReadRaw(), XrdClientConn::SendGenCommand(), XrdProofConn::SendRecv(), XrdProofConn::SendReq(), SetHeaderStatus(), Unmarshall(), and XrdClientMessage().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:17 2011 for ROOT_528-00b_version by  doxygen 1.5.1