19 #ifndef SRC_XRDCL_XRDCLASYNCHSWRITER_HH_
20 #define SRC_XRDCL_XRDCLASYNCHSWRITER_HH_
48 const std::string &strmname ) : writestage( WriteRequest ),
60 writestage = WriteRequest;
70 writestage = WriteRequest;
71 outmsg->SetCursor( 0 );
79 return bool( outmsg );
99 writestage = WriteDone;
143 const std::string &strmname;
148 std::unique_ptr<Message> outmsg;
const char * XrdSysE2T(int errcode)
Utility class encapsulating writing hand-shake request logic.
void Replay()
Replay the message that has been sent.
AsyncHSWriter(Socket &socket, const std::string &strmname)
bool HasMsg()
Check if writer was assigned with a message.
XRootDStatus Write()
Write the request into the socket.
void Reset(Message *msg=nullptr)
Reset the state of the object (makes it ready to read out next msg)
static Log * GetLog()
Get default log.
void Error(uint64_t topic, const char *format,...)
Report an error.
The message representation used throughout the system.
virtual XRootDStatus Send(const char *buffer, size_t size, int &bytesWritten)
const uint64_t AsyncSockMsg
uint16_t code
Error type, or additional hints on what to do.
bool IsOK() const
We're fine.
uint32_t errNo
Errno, if any.