19#ifndef SRC_XRDCL_XRDCLASYNCHSREADER_HH_
20#define SRC_XRDCL_XRDCLASYNCHSREADER_HH_
93 "[%s] Received message header, size: %d",
131 return std::move(
inmsg );
Utility class encapsulating reading hand-shake response logic.
Definition XrdClAsyncHSReader.hh:37
TransportHandler & xrdTransport
Definition XrdClAsyncHSReader.hh:164
Stage readstage
Definition XrdClAsyncHSReader.hh:159
Stream & strm
Definition XrdClAsyncHSReader.hh:167
Socket & socket
Definition XrdClAsyncHSReader.hh:165
uint16_t substrmnb
Definition XrdClAsyncHSReader.hh:168
void Reset()
Reset the state of the object (makes it ready to read out next msg)
Definition XrdClAsyncHSReader.hh:137
Stage
Stages of reading out a response from the socket.
Definition XrdClAsyncHSReader.hh:149
@ ReadMsgBody
Definition XrdClAsyncHSReader.hh:152
@ ReadDone
Definition XrdClAsyncHSReader.hh:153
@ ReadStart
Definition XrdClAsyncHSReader.hh:150
@ ReadHeader
Definition XrdClAsyncHSReader.hh:151
std::unique_ptr< Message > inmsg
Definition XrdClAsyncHSReader.hh:173
const std::string & strmname
Definition XrdClAsyncHSReader.hh:166
AsyncHSReader(TransportHandler &xrdTransport, Socket &socket, const std::string &strmname, Stream &strm, uint16_t substrmnb)
Definition XrdClAsyncHSReader.hh:48
std::unique_ptr< Message > ReleaseMsg()
Transfer the received message ownership.
Definition XrdClAsyncHSReader.hh:128
XRootDStatus Read()
Read out the response from the socket.
Definition XrdClAsyncHSReader.hh:64
static Log * GetLog()
Get default log.
Handle diagnostics.
Definition XrdClLog.hh:101
void Dump(uint64_t topic, const char *format,...)
Print a dump message.
The message representation used throughout the system.
Definition XrdClMessage.hh:30
A network socket.
Definition XrdClSocket.hh:43
Stream.
Definition XrdClStream.hh:52
Perform the handshake and the authentication for each physical stream.
Definition XrdClPostMasterInterfaces.hh:310
virtual XRootDStatus GetBody(Message &message, Socket *socket)=0
virtual XRootDStatus GetHeader(Message &message, Socket *socket)=0
Request status.
Definition XrdClXRootDResponses.hh:219
Definition XrdClAction.hh:34
const uint16_t suRetry
Definition XrdClStatus.hh:40
const uint64_t AsyncSockMsg
Definition XrdClConstants.hh:41
uint16_t code
Error type, or additional hints on what to do.
Definition XrdClStatus.hh:147
bool IsOK() const
We're fine.
Definition XrdClStatus.hh:124