xrootd
|
The message representation used throughout the system. More...
#include <XrdClMessage.hh>
Public Member Functions | |
Message (uint32_t size=0) | |
Constructor. | |
Message (Message &&msg) | |
Move Constructor. | |
Message & | operator= (Message &&msg) |
Move assignment operator. | |
virtual | ~Message () |
Destructor. | |
bool | IsMarshalled () const |
Check if the message is marshalled. | |
void | SetIsMarshalled (bool isMarshalled) |
Set the marshalling status. | |
void | SetDescription (const std::string &description) |
Set the description of the message. | |
const std::string & | GetDescription () const |
Get the description of the message. | |
void | SetSessionId (uint64_t sessionId) |
Set the session ID which this message is meant for. | |
uint64_t | GetSessionId () const |
Get the session ID the message is meant for. | |
void | SetVirtReqID (uint16_t virtReqID) |
Set virtual request ID for the message. | |
uint16_t | GetVirtReqID () const |
Get virtual request ID for the message. | |
Public Member Functions inherited from XrdCl::Buffer | |
Buffer (uint32_t size=0) | |
Constructor. | |
Buffer (Buffer &&buffer) | |
Move Constructor. | |
Buffer & | operator= (Buffer &&buffer) |
Move assignment operator. | |
virtual | ~Buffer () |
Destructor. | |
const char * | GetBuffer (uint32_t offset=0) const |
Get the message buffer. | |
char * | GetBuffer (uint32_t offset=0) |
Get the message buffer. | |
void | ReAllocate (uint32_t size) |
Reallocate the buffer to a new location of a given size. | |
void | Free () |
Free the buffer. | |
void | Allocate (uint32_t size) |
Allocate the buffer. | |
void | Zero () |
Zero. | |
uint32_t | GetSize () const |
Get the size of the message. | |
uint32_t | GetCursor () const |
Get append cursor. | |
void | SetCursor (uint32_t cursor) |
Set the cursor. | |
void | AdvanceCursor (uint32_t delta) |
Advance the cursor. | |
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. | |
char * | GetBufferAtCursor () |
Get the buffer pointer at the append cursor. | |
const char * | GetBufferAtCursor () const |
Get the buffer pointer at the append cursor. | |
void | FromString (const std::string str) |
Fill the buffer from a string. | |
std::string | ToString () const |
Convert the buffer to a string. | |
void | Grab (char *buffer, uint32_t size) |
Grab a buffer allocated outside. | |
char * | Release () |
Release the buffer. | |
Private Attributes | |
bool | pIsMarshalled |
uint64_t | pSessionId |
std::string | pDescription |
uint16_t | pVirtReqID |
Additional Inherited Members | |
Protected Member Functions inherited from XrdCl::Buffer | |
void | Steal (Buffer &&buffer) |
The message representation used throughout the system.
|
inline |
Constructor.
References XrdCl::Buffer::Zero().
|
inline |
Move Constructor.
|
inlinevirtual |
Destructor.
|
inline |
Get the description of the message.
References pDescription.
Referenced by XrdCl::AsyncDiscardReader::Read(), XrdCl::AsyncRawReader::Read(), XrdCl::AsyncMsgWriter::Write(), and XrdCl::XRootDMsgHandler::XRootDMsgHandler().
|
inline |
Get the session ID the message is meant for.
References pSessionId.
Referenced by XrdCl::XRootDMsgHandler::XRootDMsgHandler().
|
inline |
Get virtual request ID for the message.
References pVirtReqID.
Referenced by XrdCl::AsyncRawReader::GetResponse().
|
inline |
Check if the message is marshalled.
References pIsMarshalled.
Move assignment operator.
References pIsMarshalled, pSessionId, pVirtReqID, and XrdCl::Buffer::Steal().
|
inline |
Set the description of the message.
References pDescription.
Referenced by XrdCl::XRootDTransport::SetDescription().
|
inline |
Set the marshalling status.
References pIsMarshalled.
Referenced by XrdCl::XRootDTransport::MarshallRequest().
|
inline |
Set the session ID which this message is meant for.
References pSessionId.
|
inline |
Set virtual request ID for the message.
References pVirtReqID.
|
private |
Referenced by GetDescription(), and SetDescription().
|
private |
Referenced by IsMarshalled(), operator=(), and SetIsMarshalled().
|
private |
Referenced by GetSessionId(), operator=(), and SetSessionId().
|
private |
Referenced by GetVirtReqID(), operator=(), and SetVirtReqID().