25 #ifndef __XRD_CL_XROOTD_TRANSPORT_HH__ 26 #define __XRD_CL_XROOTD_TRANSPORT_HH__ 40 struct XRootDChannelInfo;
41 struct PluginUnloadHandler;
202 uint16_t subStreamId );
241 XRootDChannelInfo *info );
273 XRootDChannelInfo *info,
280 XRootDChannelInfo *info );
286 XRootDChannelInfo *info );
292 XRootDChannelInfo *info );
298 XRootDChannelInfo *info );
304 XRootDChannelInfo *info );
310 XRootDChannelInfo *info );
316 XRootDChannelInfo *info );
323 XRootDChannelInfo *info );
344 XRootDChannelInfo *info );
350 XRootDChannelInfo *info );
367 #endif // __XRD_CL_XROOTD_TRANSPORT_HANDLER_HH__ unsigned char kXR_char
Definition: XPtypes.hh:65
virtual uint32_t MessageReceived(Message *msg, uint16_t subStream, AnyObject &channelData)
Check if the message invokes a stream action.
static std::string FileHandleToStr(const unsigned char handle[4])
virtual Status GetBody(Message *message, Socket *socket)
Definition: XrdClAnyObject.hh:32
static uint16_t NbConnectedStrm(AnyObject &channelData)
Number of currently connected data streams.
The message representation used throughout the system.
Definition: XrdClMessage.hh:29
Status ProcessServerHS(HandShakeData *hsData, XRootDChannelInfo *info)
XRootD related protocol queries.
Definition: XrdClXRootDTransport.hh:46
Status CleanUpProtection(XRootDChannelInfo *info)
XrdSecProtocol *(* XrdSecGetProt_t)(const char *, XrdNetAddrInfo &, XrdSecParameters &, XrdOucErrInfo *)
Typedef to simplify the encoding of methods returning XrdSecProtocol.
Definition: XrdSecInterface.hh:481
Definition: XrdClPostMasterInterfaces.hh:280
~XRootDTransport()
Destructor.
virtual PathID Multiplex(Message *msg, AnyObject &channelData, PathID *hint=0)
Status DoAuthentication(HandShakeData *hsData, XRootDChannelInfo *info)
virtual Status Query(uint16_t query, AnyObject &result, AnyObject &channelData)
Query the channel.
static std::string ServerFlagsToStr(uint32_t flags)
Status ProcessProtocolResp(HandShakeData *hsData, XRootDChannelInfo *info)
Status HandShakeParallel(HandShakeData *handShakeData, AnyObject &channelData)
Definition: XrdSecProtect.hh:55
Procedure execution status.
Definition: XrdClStatus.hh:110
Status GetCredentials(XrdSecCredentials *&credentials, HandShakeData *hsData, XRootDChannelInfo *info)
PluginUnloadHandler * pSecUnloadHandler
Definition: XrdClXRootDTransport.hh:363
virtual void Disconnect(AnyObject &channelData, uint16_t subStreamId)
The stream has been disconnected, do the cleanups.
static void UnMarshallHeader(Message *msg)
Unmarshall the header incoming message.
static Status UnMarshallBody(Message *msg, uint16_t reqType)
Unmarshall the body of the incoming message.
XRootDTransport()
Constructor.
virtual PathID MultiplexSubStream(Message *msg, AnyObject &channelData, PathID *hint=0)
Definition: XrdSysPlugin.hh:52
friend struct PluginUnloadHandler
Definition: XrdClXRootDTransport.hh:362
Message * GenerateInitialHSProtocol(HandShakeData *hsData, XRootDChannelInfo *info, kXR_char expect)
static const uint16_t ProtocolVersion
returns the protocol version
Definition: XrdClXRootDTransport.hh:49
virtual void WaitBeforeExit()
Wait until the program can safely exit.
Data structure that carries the handshake information.
Definition: XrdClPostMasterInterfaces.hh:255
Message * GenerateBind(HandShakeData *hsData, XRootDChannelInfo *info)
XrdSecGetProt_t GetAuthHandler()
static Status MarshallRequest(Message *msg)
Marshal the outgoing message.
Perform the handshake and the authentication for each physical stream.
Definition: XrdClPostMasterInterfaces.hh:300
static void SetDescription(Message *msg)
Get the description of a message.
Definition: XrdClAnyObject.hh:25
Status HandShakeMain(HandShakeData *handShakeData, AnyObject &channelData)
virtual bool NeedControlConnection()
Definition: XrdClXRootDTransport.hh:162
virtual void FinalizeChannel(AnyObject &channelData)
Finalize channel.
virtual Status GetSignature(Message *toSign, Message *&sign, AnyObject &channelData)
Get signature for given message.
Status CleanUpAuthentication(XRootDChannelInfo *info)
static void LogErrorResponse(const Message &msg)
Log server error response.
virtual bool HandShakeDone(HandShakeData *handShakeData, AnyObject &channelData)
static Status UnMarshallRequest(Message *msg)
URL representation.
Definition: XrdClURL.hh:30
virtual Status HandShake(HandShakeData *handShakeData, AnyObject &channelData)
HandShake.
virtual bool NeedEncryption(HandShakeData *handShakeData, AnyObject &channelData)
virtual uint16_t SubStreamNumber(AnyObject &channelData)
Return a number of substreams per stream that should be created.
Status ProcessBindResp(HandShakeData *hsData, XRootDChannelInfo *info)
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)
Status ProcessLogInResp(HandShakeData *hsData, XRootDChannelInfo *info)
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:40
virtual void InitializeChannel(const URL &url, AnyObject &channelData)
Initialize channel.
virtual Status GetHeader(Message *message, Socket *socket)
virtual bool IsStreamTTLElapsed(time_t time, AnyObject &channelData)
Check if the stream should be disconnected.
XRootD transport handler.
Definition: XrdClXRootDTransport.hh:55
static const uint16_t ServerFlags
returns server flags
Definition: XrdClXRootDTransport.hh:48