![]() |
XRootD
|
Utility class encapsulating reading hand-shake response logic. More...
#include <XrdClAsyncHSReader.hh>
Public Member Functions | |
AsyncHSReader (TransportHandler &xrdTransport, Socket &socket, const std::string &strmname, Stream &strm, uint16_t substrmnb) | |
XRootDStatus | Read () |
Read out the response from the socket. More... | |
std::unique_ptr< Message > | ReleaseMsg () |
Transfer the received message ownership. More... | |
void | Reset () |
Reset the state of the object (makes it ready to read out next msg) More... | |
Utility class encapsulating reading hand-shake response logic.
Definition at line 36 of file XrdClAsyncHSReader.hh.
|
inline |
Constructor
xrdTransport | : the (xrootd) transport layer |
socket | : the socket with the message to be read out |
strmname | : stream name |
strm | : the stream encapsulating the connection |
substrmnb | : the substream number |
Definition at line 48 of file XrdClAsyncHSReader.hh.
|
inline |
Read out the response from the socket.
Definition at line 64 of file XrdClAsyncHSReader.hh.
References XrdCl::AsyncSockMsg, XrdCl::Status::code, XrdCl::Log::Dump(), XrdCl::TransportHandler::GetBody(), XrdCl::TransportHandler::GetHeader(), XrdCl::DefaultEnv::GetLog(), XrdCl::Status::IsOK(), and XrdCl::suRetry.
|
inline |
Transfer the received message ownership.
Definition at line 128 of file XrdClAsyncHSReader.hh.
|
inline |
Reset the state of the object (makes it ready to read out next msg)
Definition at line 137 of file XrdClAsyncHSReader.hh.