25 #ifndef __XRD_CL_XROOTD_TRANSPORT_HH__
26 #define __XRD_CL_XROOTD_TRANSPORT_HH__
41 struct XRootDChannelInfo;
42 struct PluginUnloadHandler;
224 uint16_t subStreamId );
244 std::ostringstream o;
274 XRootDChannelInfo *info );
317 XRootDChannelInfo *info,
324 XRootDChannelInfo *info,
331 XRootDChannelInfo *info,
338 XRootDChannelInfo *info );
344 XRootDChannelInfo *info );
353 XRootDChannelInfo *info );
359 XRootDChannelInfo *info );
365 XRootDChannelInfo *info );
371 XRootDChannelInfo *info );
377 XRootDChannelInfo *info );
383 XRootDChannelInfo *info );
390 XRootDChannelInfo *info );
411 XRootDChannelInfo *info );
417 XRootDChannelInfo *info );
434 #endif // __XRD_CL_XROOTD_TRANSPORT_HANDLER_HH__
unsigned char kXR_char
Definition: XPtypes.hh:65
XRootDStatus ProcessBindResp(HandShakeData *hsData, XRootDChannelInfo *info)
static std::string FileHandleToStr(const unsigned char handle[4])
Definition: XrdClAnyObject.hh:32
void SetDescription(const std::string &description)
Set the description of the message.
Definition: XrdClMessage.hh:87
static uint16_t NbConnectedStrm(AnyObject &channelData)
Number of currently connected data streams.
Message * GenerateProtocol(HandShakeData *hsData, XRootDChannelInfo *info, kXR_char expect)
void SetIsMarshalled(bool isMarshalled)
Set the marshalling status.
Definition: XrdClMessage.hh:79
virtual XRootDStatus HandShake(HandShakeData *handShakeData, AnyObject &channelData)
HandShake.
The message representation used throughout the system.
Definition: XrdClMessage.hh:29
virtual void DecFileInstCnt(AnyObject &channelData)
Decrement file object instance count bound to this channel.
XRootDStatus GetCredentials(XrdSecCredentials *&credentials, HandShakeData *hsData, XRootDChannelInfo *info)
virtual URL GetBindPreference(const URL &url, AnyObject &channelData)
Get bind preference for the next data stream.
XRootD related protocol queries.
Definition: XrdClXRootDTransport.hh:47
static XRootDStatus UnMarshalStatusBody(Message &msg, uint16_t reqType)
Unmarshall the body of the status response.
Status CleanUpProtection(XRootDChannelInfo *info)
Definition: XrdClPostMasterInterfaces.hh:269
~XRootDTransport()
Destructor.
virtual PathID Multiplex(Message *msg, AnyObject &channelData, PathID *hint=0)
virtual Status Query(uint16_t query, AnyObject &result, AnyObject &channelData)
Query the channel.
Definition: XProtocol.hh:550
static std::string ServerFlagsToStr(uint32_t flags)
XRootDStatus ProcessProtocolResp(HandShakeData *hsData, XRootDChannelInfo *info)
XrdSecProtocol *(* XrdSecGetProt_t)(const char *, XrdNetAddrInfo &, XrdSecParameters &, XrdOucErrInfo *)
Typedef to simplify the encoding of methods returning XrdSecProtocol.
Definition: XrdSecInterface.hh:481
virtual XRootDStatus GetHeader(Message &message, Socket *socket)
static XRootDStatus UnMarshallRequest(Message *msg)
Definition: XrdSecProtect.hh:55
static XRootDStatus UnMarshallBody(Message *msg, uint16_t reqType)
Unmarshall the body of the incoming message.
const char * GetBuffer(uint32_t offset=0) const
Get the message buffer.
Definition: XrdClBuffer.hh:72
Procedure execution status.
Definition: XrdClStatus.hh:113
virtual XRootDStatus GetBody(Message &message, Socket *socket)
PluginUnloadHandler * pSecUnloadHandler
Definition: XrdClXRootDTransport.hh:430
virtual void Disconnect(AnyObject &channelData, uint16_t subStreamId)
The stream has been disconnected, do the cleanups.
XRootDTransport()
Constructor.
virtual PathID MultiplexSubStream(Message *msg, AnyObject &channelData, PathID *hint=0)
Definition: XrdSysPlugin.hh:52
friend struct PluginUnloadHandler
Definition: XrdClXRootDTransport.hh:429
Message * GenerateInitialHSProtocol(HandShakeData *hsData, XRootDChannelInfo *info, kXR_char expect)
static const uint16_t ProtocolVersion
returns the protocol version
Definition: XrdClXRootDTransport.hh:50
virtual void WaitBeforeExit()
Wait until the program can safely exit.
Data structure that carries the handshake information.
Definition: XrdClPostMasterInterfaces.hh:244
Message * GenerateBind(HandShakeData *hsData, XRootDChannelInfo *info)
XrdSecGetProt_t GetAuthHandler()
Perform the handshake and the authentication for each physical stream.
Definition: XrdClPostMasterInterfaces.hh:289
static void SetDescription(Message *msg)
Get the description of a message.
Definition: XrdClXRootDTransport.hh:242
Request status.
Definition: XrdClXRootDResponses.hh:218
static XRootDStatus MarshallRequest(Message *msg)
Marshal the outgoing message.
Definition: XrdClXRootDTransport.hh:172
static XRootDStatus UnMarchalStatusCSE(Message &msg)
Unmarshall the correction-segment of the status response for pgwrite.
virtual bool NeedControlConnection()
Definition: XrdClXRootDTransport.hh:164
virtual void FinalizeChannel(AnyObject &channelData)
Finalize channel.
static const uint16_t IsEncrypted
returns true if the channel is encrypted
Definition: XrdClXRootDTransport.hh:51
XRootDStatus ProcessServerHS(HandShakeData *hsData, XRootDChannelInfo *info)
static void UnMarshallHeader(Message &msg)
Unmarshall the header incoming message.
virtual Status GetSignature(Message *toSign, Message *&sign, AnyObject &channelData)
Get signature for given message.
Status CleanUpAuthentication(XRootDChannelInfo *info)
virtual uint32_t MessageReceived(Message &msg, uint16_t subStream, AnyObject &channelData)
Check if the message invokes a stream action.
static void LogErrorResponse(const Message &msg)
Log server error response.
virtual bool HandShakeDone(HandShakeData *handShakeData, AnyObject &channelData)
XRootDStatus ProcessLogInResp(HandShakeData *hsData, XRootDChannelInfo *info)
URL representation.
Definition: XrdClURL.hh:30
virtual bool NeedEncryption(HandShakeData *handShakeData, AnyObject &channelData)
XRootDStatus ProcessProtocolBody(char *bodybuff, size_t bodysize, XRootDChannelInfo *info)
XRootDStatus HandShakeMain(HandShakeData *handShakeData, AnyObject &channelData)
static void GenerateDescription(char *msg, std::ostringstream &o)
Get the description of a message.
virtual uint16_t SubStreamNumber(AnyObject &channelData)
Return a number of substreams per stream that should be created.
XRootDStatus HandShakeParallel(HandShakeData *handShakeData, AnyObject &channelData)
virtual void MessageSent(Message *msg, uint16_t subStream, uint32_t bytesSent, AnyObject &channelData)
Notify the transport about a message having been sent.
Message * GenerateLogIn(HandShakeData *hsData, XRootDChannelInfo *info)
Status ProcessEndSessionResp(HandShakeData *hsData, XRootDChannelInfo *info)
void InitProtocolReq(ClientProtocolRequest *request, XRootDChannelInfo *info, kXR_char expect)
Generic structure to pass security information back and forth.
Definition: XrdSecInterface.hh:50
virtual Status IsStreamBroken(time_t inactiveTime, AnyObject &channelData)
Message * GenerateEndSession(HandShakeData *hsData, XRootDChannelInfo *info)
A network socket.
Definition: XrdClSocket.hh:42
virtual void InitializeChannel(const URL &url, AnyObject &channelData)
Initialize channel.
virtual bool IsStreamTTLElapsed(time_t time, AnyObject &channelData)
Check if the stream should be disconnected.
XRootDStatus DoAuthentication(HandShakeData *hsData, XRootDChannelInfo *info)
XRootD transport handler.
Definition: XrdClXRootDTransport.hh:57
static const uint16_t ServerFlags
returns server flags
Definition: XrdClXRootDTransport.hh:49