19 #ifndef __XRD_CL_POST_MASTER_HH__ 20 #define __XRD_CL_POST_MASTER_HH__ 42 struct PostMasterImpl;
214 std::shared_ptr<Job> onConnJob );
244 std::unique_ptr<PostMasterImpl>
pImpl;
248 #endif // __XRD_CL_POST_MASTER_HH__ A synchronized queue.
Definition: XrdClJobManager.hh:50
void SetOnConnectHandler(std::unique_ptr< Job > onConnJob)
Set the global connection error handler.
uint16_t NbConnectedStrm(const URL &url)
Get the number of connected data streams.
Definition: XrdClAnyObject.hh:32
Status QueryTransport(const URL &url, uint16_t query, AnyObject &result)
Message filter.
Definition: XrdClPostMasterInterfaces.hh:49
The message representation used throughout the system.
Definition: XrdClMessage.hh:29
Status Receive(const URL &url, Message *&msg, MessageFilter *filter, time_t expires)
TaskManager * GetTaskManager()
Get the task manager object user by the post master.
Status Redirect(const URL &url, Message *msg, IncomingMsgHandler *handler)
std::unique_ptr< PostMasterImpl > pImpl
Definition: XrdClPostMaster.hh:244
Status RegisterEventHandler(const URL &url, ChannelEventHandler *handler)
Register channel event handler.
bool Start()
Start the post master.
bool Finalize()
Finalizer.
Procedure execution status.
Definition: XrdClStatus.hh:112
void NotifyConnErrHandler(const URL &url, const XRootDStatus &status)
Notify the global error connection handler.
void NotifyConnectHandler(const URL &url)
Notify the global on-connect handler.
A communication channel between the client and the server.
Definition: XrdClChannel.hh:48
void CollapseRedirect(const URL &oldurl, const URL &newURL)
Collapse channel URL - replace the URL of the channel.
bool Reinitialize()
Reinitialize after fork.
Request status.
Definition: XrdClXRootDResponses.hh:218
Definition: XrdClAnyObject.hh:25
Channel event handler.
Definition: XrdClPostMasterInterfaces.hh:236
virtual ~PostMaster()
Destructor.
Message handler.
Definition: XrdClPostMasterInterfaces.hh:71
void SetOnDataConnectHandler(const URL &url, std::shared_ptr< Job > onConnJob)
Set the on-connect handler for data streams.
bool Initialize()
Initializer.
void SetConnectionErrorHandler(std::function< void(const URL &, const XRootDStatus &)> handler)
Set the global on-error on-connect handler for control streams.
URL representation.
Definition: XrdClURL.hh:30
JobManager * GetJobManager()
Get the job manager object user by the post master.
Status ForceDisconnect(const URL &url)
Shut down a channel.
Channel * GetChannel(const URL &url)
Status RemoveEventHandler(const URL &url, ChannelEventHandler *handler)
Remove a channel event handler.
Message status handler.
Definition: XrdClPostMasterInterfaces.hh:184
A hub for dispatching and receiving messages.
Definition: XrdClPostMaster.hh:47
Definition: XrdClTaskManager.hh:75
bool Stop()
Stop the postmaster.
XRootDStatus Send(const URL &url, Message *msg, bool stateful, time_t expires)