12 #ifndef ROOT_TApplicationServer
13 #define ROOT_TApplicationServer
24 #ifndef ROOT_TApplication
30 #ifndef ROOT_TSysEvtHandler
const char * GetHost() const
Int_t GetProtocol() const
TASLogHandler * fExecHandler
TRemoteObject * fWorkingDir
void HandleUrgentData()
Handle Out-Of-Band data sent by the master or client.
void GetOptions(Int_t *argc, char **argv)
Get and handle command line options.
static void ErrorHandler(Int_t level, Bool_t abort, const char *location, const char *msg)
The error handler function.
This class represents a WWW compatible URL.
const char * GetUser() const
void Terminate(Int_t status)
Terminate the proof server.
Int_t SendCanvases()
Send any created canvas to client.
const char * GetHost() const
static void SetDefaultPrefix(const char *pfx)
Static method to set the default prefix.
virtual ~TApplicationServer()
Cleanup.
The TRemoteObject class provides protocol for browsing ROOT objects from a remote ROOT session...
#define ClassDef(name, id)
Int_t BrowseKey(const char *keyname)
Read key object and send it back to client.
void Run(Bool_t retrn=kFALSE)
Main server eventloop.
Long_t ProcessLine(const char *line, Bool_t=kFALSE, Int_t *err=0)
Parse a command line received from the client, making sure that the files needed for the execution...
void SendLogFile(Int_t status=0, Int_t start=-1, Int_t end=-1)
Send log file to master.
TSocket * GetSocket() const
Int_t BrowseFile(const char *fname)
Browse root file and send back its content; if fname is null, send the full list of files...
Bool_t ReadNotify()
Notify when something can be read from the descriptor associated with this handler.
TASLogHandler(const char *cmd, TSocket *s, const char *pfx="")
Execute 'cmd' in a pipe and handle output messages from the related file.
void HandleCheckFile(TMessage *mess)
Handle file checking request.
void HandleSigPipe()
Called when the client is not alive anymore (i.e.
Int_t Setup()
Print the Remote Server logo on standard output.
void HandleSocketInput()
Handle input coming from the client or from the master server.
TApplicationServer(Int_t *argc, char **argv, FILE *flog, const char *logfile)
Int_t BrowseDirectory(const char *dirname)
Browse directory and send back its content to client.
Bool_t Notify()
Handle available message in the open file.
void Reset(const char *dir)
Reset environment to be ready for execution of next command.
virtual ~TASLogHandlerGuard()
Close a guard for executing a command in a pipe.
void ExecLogon()
Execute logon macro's.
This class creates the ROOT Application Environment that interfaces to the windowing system eventloop...
Int_t ReceiveFile(const char *file, Bool_t bin, Long64_t size)
Receive a file, either sent by a client or a master server.
virtual ~TASLogHandler()
Handle available message in the open file.
const char * GetUser() const
TASLogHandlerGuard(const char *cmd, TSocket *s, const char *pfx="", Bool_t on=kTRUE)
Init a guard for executing a command in a pipe.