![]() |
XRootD
|
The message representation used throughout the system. More...
#include <XrdClMessage.hh>
Public Member Functions | |
Message (Message &&msg) | |
Move Constructor. | |
Message (uint32_t size=0) | |
Constructor. | |
virtual | ~Message () |
Destructor. | |
const std::string & | GetDescription () const |
Get the description of the message. | |
uint64_t | GetSessionId () const |
Get the session ID the message is meant for. | |
uint16_t | GetVirtReqID () const |
Get virtual request ID for the message. | |
bool | IsMarshalled () const |
Check if the message is marshalled. | |
Message & | operator= (Message &&msg) |
Move assignment operator. | |
void | SetDescription (const std::string &description) |
Set the description of the message. | |
void | SetIsMarshalled (bool isMarshalled) |
Set the marshalling status. | |
void | SetSessionId (uint64_t sessionId) |
Set the session ID which this message is meant for. | |
void | SetVirtReqID (uint16_t virtReqID) |
Set virtual request ID for the message. | |
![]() | |
Buffer (Buffer &&buffer) | |
Move Constructor. | |
Buffer (uint32_t size=0) | |
Constructor. | |
virtual | ~Buffer () |
Destructor. | |
void | AdvanceCursor (uint32_t delta) |
Advance the cursor. | |
void | Allocate (uint32_t size) |
Allocate the buffer. | |
void | Append (const char *buffer, uint32_t size) |
Append data at the position pointed to by the append cursor. | |
void | Append (const char *buffer, uint32_t size, uint32_t offset) |
Append data at the given offset. | |
void | Free () |
Free the buffer. | |
void | FromString (const std::string str) |
Fill the buffer from a string. | |
char * | GetBuffer (uint32_t offset=0) |
Get the message buffer. | |
const char * | GetBuffer (uint32_t offset=0) const |
Get the message buffer. | |
char * | GetBufferAtCursor () |
Get the buffer pointer at the append cursor. | |
const char * | GetBufferAtCursor () const |
Get the buffer pointer at the append cursor. | |
uint32_t | GetCursor () const |
Get append cursor. | |
uint32_t | GetSize () const |
Get the size of the message. | |
void | Grab (char *buffer, uint32_t size) |
Grab a buffer allocated outside. | |
Buffer & | operator= (Buffer &&buffer) |
Move assignment operator. | |
void | ReAllocate (uint32_t size) |
Reallocate the buffer to a new location of a given size. | |
char * | Release () |
Release the buffer. | |
void | SetCursor (uint32_t cursor) |
Set the cursor. | |
std::string | ToString () const |
Convert the buffer to a string. | |
void | Zero () |
Zero. | |
Additional Inherited Members | |
![]() | |
void | Steal (Buffer &&buffer) |
The message representation used throughout the system.
Definition at line 29 of file XrdClMessage.hh.
|
inline |
Constructor.
Definition at line 35 of file XrdClMessage.hh.
References XrdCl::Buffer::Zero().
|
inline |
Move Constructor.
Definition at line 45 of file XrdClMessage.hh.
|
inlinevirtual |
|
inline |
Get the description of the message.
Definition at line 95 of file XrdClMessage.hh.
Referenced by XrdCl::XRootDMsgHandler::XRootDMsgHandler(), XrdCl::XRootDMsgHandler::Examine(), XrdCl::FileStateHandler::OnStateError(), XrdCl::FileStateHandler::OnStateResponse(), XrdCl::XRootDMsgHandler::OnStatusReady(), XrdCl::XRootDMsgHandler::OnStreamEvent(), XrdCl::XRootDMsgHandler::Process(), XrdCl::AsyncDiscardReader::Read(), XrdCl::AsyncRawReader::Read(), XrdCl::MessageUtils::RedirectMessage(), XrdCl::Socket::Send(), XrdCl::Stream::Send(), XrdCl::FileSystemData::Send(), XrdCl::MessageUtils::SendMessage(), XrdCl::AsyncMsgWriter::Write(), and XrdCl::XRootDMsgHandler::WriteMessageBody().
|
inline |
Get the session ID the message is meant for.
Definition at line 111 of file XrdClMessage.hh.
Referenced by XrdCl::XRootDMsgHandler::XRootDMsgHandler(), and XrdCl::Stream::Send().
|
inline |
Get virtual request ID for the message.
Definition at line 127 of file XrdClMessage.hh.
Referenced by XrdCl::LocalFileHandler::ExecRequest(), and XrdCl::AsyncRawReader::GetResponse().
|
inline |
Check if the message is marshalled.
Definition at line 71 of file XrdClMessage.hh.
Referenced by XrdCl::XRootDTransport::UnMarshallRequest().
Move assignment operator.
Definition at line 54 of file XrdClMessage.hh.
References XrdCl::Buffer::Steal().
|
inline |
Set the description of the message.
Definition at line 87 of file XrdClMessage.hh.
Referenced by XrdCl::XRootDTransport::SetDescription().
|
inline |
Set the marshalling status.
Definition at line 79 of file XrdClMessage.hh.
Referenced by XrdCl::XRootDTransport::MarshallRequest(), and XrdCl::XRootDTransport::UnMarshallRequest().
|
inline |
Set the session ID which this message is meant for.
Definition at line 103 of file XrdClMessage.hh.
Referenced by XrdCl::FileStateHandler::Close().
|
inline |
Set virtual request ID for the message.
Definition at line 119 of file XrdClMessage.hh.
Referenced by XrdCl::FileStateHandler::ReadV().