#include <XrdClientInputBuffer.hh>

Public Member Functions | |
| XrdClientInputBuffer () | |
| ~XrdClientInputBuffer () | |
| bool | IsMexEmpty () |
| bool | IsSemEmpty () |
| int | MexSize () |
| int | PutMsg (XrdClientMessage *msg) |
| int | SemSize () |
| int | WipeStreamid (int streamid) |
| XrdClientMessage * | GetMsg (int streamid, int secstimeout) |
Private Member Functions | |
| XrdSysSemWait * | GetSyncObjOrMakeOne (int streamid) |
| int | MsgForStreamidCnt (int streamid) |
Private Attributes | |
| XrdClientVector < XrdClientMessage * > | fMsgQue |
| int | fMsgIter |
| XrdSysRecMutex | fMutex |
| XrdOucHash< XrdSysSemWait > | fSyncobjRepo |
| XrdClientInputBuffer::XrdClientInputBuffer | ( | ) |
References XrdClientVector< T >::Clear(), and fMsgQue.
| XrdClientInputBuffer::~XrdClientInputBuffer | ( | ) |
| XrdClientMessage * XrdClientInputBuffer::GetMsg | ( | int | streamid, | |
| int | secstimeout | |||
| ) |
References XrdClientVector< T >::Erase(), fMsgIter, fMsgQue, fMutex, XrdClientVector< T >::GetSize(), GetSyncObjOrMakeOne(), and XrdSysSemWait::Wait().
Referenced by XrdClientPhyConnection::ReadMessage().
| XrdSysSemWait * XrdClientInputBuffer::GetSyncObjOrMakeOne | ( | int | streamid | ) | [private] |
References XrdOucHash< T >::Find(), fMutex, fSyncobjRepo, XrdOucHash< T >::Rep(), and snprintf.
| bool XrdClientInputBuffer::IsMexEmpty | ( | ) | [inline] |
| bool XrdClientInputBuffer::IsSemEmpty | ( | ) | [inline] |
| int XrdClientInputBuffer::MexSize | ( | ) | [inline] |
Referenced by PutMsg().
| int XrdClientInputBuffer::MsgForStreamidCnt | ( | int | streamid | ) | [private] |
References fMsgIter, fMsgQue, XrdClientVector< T >::GetSize(), and XrdClientMessage::MatchStreamid().
| int XrdClientInputBuffer::PutMsg | ( | XrdClientMessage * | msg | ) |
References fMsgQue, fMutex, GetSyncObjOrMakeOne(), XrdClientMessage::HeaderSID(), MexSize(), XrdSysSemWait::Post(), and XrdClientVector< T >::Push_back().
Referenced by XrdClientPhyConnection::BuildMessage().
| int XrdClientInputBuffer::SemSize | ( | ) | [inline] |
| int XrdClientInputBuffer::WipeStreamid | ( | int | streamid | ) |
References XrdClientVector< T >::Erase(), fMsgIter, fMsgQue, fMutex, XrdClientVector< T >::GetSize(), and XrdClientMessage::MatchStreamid().
Referenced by XrdClientPhyConnection::WipeStreamid().
int XrdClientInputBuffer::fMsgIter [private] |
Referenced by GetMsg(), MsgForStreamidCnt(), WipeStreamid(), and ~XrdClientInputBuffer().
Referenced by GetMsg(), MsgForStreamidCnt(), PutMsg(), WipeStreamid(), XrdClientInputBuffer(), and ~XrdClientInputBuffer().
XrdSysRecMutex XrdClientInputBuffer::fMutex [private] |
Referenced by GetMsg(), GetSyncObjOrMakeOne(), PutMsg(), WipeStreamid(), and ~XrdClientInputBuffer().
Referenced by GetSyncObjOrMakeOne(), and ~XrdClientInputBuffer().
1.7.1