25 #ifndef __XRD_CL_XROOTD_TRANSPORT_HH__
26 #define __XRD_CL_XROOTD_TRANSPORT_HH__
40 struct XRootDChannelInfo;
41 struct PluginUnloadHandler;
208 uint16_t subStreamId );
247 XRootDChannelInfo *info );
279 XRootDChannelInfo *info,
286 XRootDChannelInfo *info,
293 XRootDChannelInfo *info,
300 XRootDChannelInfo *info );
306 XRootDChannelInfo *info );
312 XRootDChannelInfo *info );
318 XRootDChannelInfo *info );
324 XRootDChannelInfo *info );
330 XRootDChannelInfo *info );
336 XRootDChannelInfo *info );
343 XRootDChannelInfo *info );
364 XRootDChannelInfo *info );
370 XRootDChannelInfo *info );
unsigned char kXR_char
Definition: XPtypes.hh:65
XrdSecProtocol *(* XrdSecGetProt_t)(const char *, XrdNetAddrInfo &, XrdSecParameters &, XrdOucErrInfo *)
Typedef to simplify the encoding of methods returning XrdSecProtocol.
Definition: XrdSecInterface.hh:481
Definition: XrdClAnyObject.hh:33
The message representation used throughout the system.
Definition: XrdClMessage.hh:30
A network socket.
Definition: XrdClSocket.hh:42
Perform the handshake and the authentication for each physical stream.
Definition: XrdClPostMasterInterfaces.hh:317
URL representation.
Definition: XrdClURL.hh:31
Request status.
Definition: XrdClXRootDResponses.hh:215
XRootD transport handler.
Definition: XrdClXRootDTransport.hh:57
void InitProtocolReq(ClientProtocolRequest *request, XRootDChannelInfo *info, kXR_char expect)
virtual bool NeedControlConnection()
Definition: XrdClXRootDTransport.hh:163
static Status UnMarshallBody(Message *msg, uint16_t reqType)
Unmarshall the body of the incoming message.
static void SetDescription(Message *msg)
Get the description of a message.
Status CleanUpProtection(XRootDChannelInfo *info)
virtual void InitializeChannel(const URL &url, AnyObject &channelData)
Initialize channel.
static std::string FileHandleToStr(const unsigned char handle[4])
XRootDTransport()
Constructor.
virtual XRootDStatus GetHeader(Message *message, Socket *socket)
virtual Status GetSignature(Message *toSign, Message *&sign, AnyObject &channelData)
Get signature for given message.
Message * GenerateInitialHSProtocol(HandShakeData *hsData, XRootDChannelInfo *info, kXR_char expect)
Message * GenerateEndSession(HandShakeData *hsData, XRootDChannelInfo *info)
static Status MarshallRequest(Message *msg)
Marshal the outgoing message.
virtual bool NeedEncryption(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.
virtual bool HandShakeDone(HandShakeData *handShakeData, AnyObject &channelData)
Status CleanUpAuthentication(XRootDChannelInfo *info)
static Status UnMarshalStatusBody(Message *msg, uint16_t reqType)
Unmarshall the body of the status response.
Message * GenerateLogIn(HandShakeData *hsData, XRootDChannelInfo *info)
~XRootDTransport()
Destructor.
virtual void WaitBeforeExit()
Wait until the program can safely exit.
Status ProcessEndSessionResp(HandShakeData *hsData, XRootDChannelInfo *info)
Status HandShakeMain(HandShakeData *handShakeData, AnyObject &channelData)
Status ProcessBindResp(HandShakeData *hsData, XRootDChannelInfo *info)
static std::string ServerFlagsToStr(uint32_t flags)
Message * GenerateProtocol(HandShakeData *hsData, XRootDChannelInfo *info, kXR_char expect)
virtual Status HandShake(HandShakeData *handShakeData, AnyObject &channelData)
HandShake.
PluginUnloadHandler * pSecUnloadHandler
Definition: XrdClXRootDTransport.hh:383
virtual uint32_t MessageReceived(Message *msg, uint16_t subStream, AnyObject &channelData)
Check if the message invokes a stream action.
Status DoAuthentication(HandShakeData *hsData, XRootDChannelInfo *info)
static void LogErrorResponse(const Message &msg)
Log server error response.
static void UnMarshallHeader(Message *msg)
Unmarshall the header incoming message.
virtual Status Query(uint16_t query, AnyObject &result, AnyObject &channelData)
Query the channel.
virtual uint16_t SubStreamNumber(AnyObject &channelData)
Return a number of substreams per stream that should be created.
virtual PathID MultiplexSubStream(Message *msg, AnyObject &channelData, PathID *hint=0)
Status GetCredentials(XrdSecCredentials *&credentials, HandShakeData *hsData, XRootDChannelInfo *info)
virtual XRootDStatus GetBody(Message *message, Socket *socket)
static uint16_t NbConnectedStrm(AnyObject &channelData)
Number of currently connected data streams.
Message * GenerateBind(HandShakeData *hsData, XRootDChannelInfo *info)
virtual PathID Multiplex(Message *msg, AnyObject &channelData, PathID *hint=0)
XrdSecGetProt_t GetAuthHandler()
Status ProcessProtocolResp(HandShakeData *hsData, XRootDChannelInfo *info)
static Status UnMarshallRequest(Message *msg)
virtual Status GetSignature(Message *toSign, Message *&sign, XRootDChannelInfo *info)
Get signature for given message.
virtual Status IsStreamBroken(time_t inactiveTime, AnyObject &channelData)
friend struct PluginUnloadHandler
Definition: XrdClXRootDTransport.hh:382
virtual bool IsStreamTTLElapsed(time_t time, AnyObject &channelData)
Check if the stream should be disconnected.
Status ProcessServerHS(HandShakeData *hsData, XRootDChannelInfo *info)
Status ProcessLogInResp(HandShakeData *hsData, XRootDChannelInfo *info)
virtual void Disconnect(AnyObject &channelData, uint16_t subStreamId)
The stream has been disconnected, do the cleanups.
virtual void FinalizeChannel(AnyObject &channelData)
Finalize channel.
Status HandShakeParallel(HandShakeData *handShakeData, AnyObject &channelData)
Definition: XrdSecProtect.hh:56
Definition: XrdSysPlugin.hh:53
Definition: XrdClAnyObject.hh:26
Definition: XProtocol.hh:534
Data structure that carries the handshake information.
Definition: XrdClPostMasterInterfaces.hh:272
Definition: XrdClPostMasterInterfaces.hh:297
Procedure execution status.
Definition: XrdClStatus.hh:111
XRootD related protocol queries.
Definition: XrdClXRootDTransport.hh:47
static const uint16_t ServerFlags
returns server flags
Definition: XrdClXRootDTransport.hh:48
static const uint16_t ProtocolVersion
returns the protocol version
Definition: XrdClXRootDTransport.hh:49
static const uint16_t IsEncrypted
returns true if the channel is encrypted
Definition: XrdClXRootDTransport.hh:50
Generic structure to pass security information back and forth.
Definition: XrdSecInterface.hh:51