#include <TApplicationServer.h>
Inheritance diagram for TApplicationServer:

Public Member Functions | |
| TApplicationServer (Int_t *argc, char **argv, FILE *flog, const char *logfile) | |
| virtual | ~TApplicationServer () |
| void | GetOptions (Int_t *argc, char **argv) |
| Int_t | GetProtocol () const |
| Int_t | GetPort () const |
| const char * | GetUser () const |
| const char * | GetHost () const |
| TSocket * | GetSocket () const |
| void | HandleSocketInput () |
| void | HandleUrgentData () |
| void | HandleSigPipe () |
| void | Interrupt () |
| Bool_t | IsValid () const |
| Long_t | ProcessLine (const char *line, Bool_t=kFALSE, Int_t *err=0) |
| void | Reset (const char *dir) |
| Int_t | ReceiveFile (const char *file, Bool_t bin, Long64_t size) |
| void | Run (Bool_t retrn=kFALSE) |
| void | SendLogFile (Int_t status=0, Int_t start=-1, Int_t end=-1) |
| Int_t | BrowseDirectory (const char *dirname) |
| Int_t | BrowseFile (const char *fname) |
| Int_t | BrowseKey (const char *keyname) |
| void | Terminate (Int_t status) |
| TApplicationServer (Int_t *argc, char **argv, FILE *flog, const char *logfile) | |
| virtual | ~TApplicationServer () |
| void | GetOptions (Int_t *argc, char **argv) |
| Int_t | GetProtocol () const |
| Int_t | GetPort () const |
| const char * | GetUser () const |
| const char * | GetHost () const |
| TSocket * | GetSocket () const |
| void | HandleSocketInput () |
| void | HandleUrgentData () |
| void | HandleSigPipe () |
| void | Interrupt () |
| Bool_t | IsValid () const |
| Long_t | ProcessLine (const char *line, Bool_t=kFALSE, Int_t *err=0) |
| void | Reset (const char *dir) |
| Int_t | ReceiveFile (const char *file, Bool_t bin, Long64_t size) |
| void | Run (Bool_t retrn=kFALSE) |
| void | SendLogFile (Int_t status=0, Int_t start=-1, Int_t end=-1) |
| Int_t | BrowseDirectory (const char *dirname) |
| Int_t | BrowseFile (const char *fname) |
| Int_t | BrowseKey (const char *keyname) |
| void | Terminate (Int_t status) |
Protected Member Functions | |
| void | HandleCheckFile (TMessage *mess) |
| void | HandleCheckFile (TMessage *mess) |
Static Protected Member Functions | |
| static void | ErrorHandler (Int_t level, Bool_t abort, const char *location, const char *msg) |
| static void | ErrorHandler (Int_t level, Bool_t abort, const char *location, const char *msg) |
Private Member Functions | |
| void | ExecLogon () |
| Int_t | Setup () |
| Int_t | SendCanvases () |
| void | ExecLogon () |
| Int_t | Setup () |
| Int_t | SendCanvases () |
Private Attributes | |
| Int_t | fProtocol |
| TUrl | fUrl |
| TSocket * | fSocket |
| Bool_t | fIsValid |
| Bool_t | fInterrupt |
| TString | fLogFilePath |
| FILE * | fLogFile |
| Int_t | fLogFileDes |
| Bool_t | fRealTimeLog |
| TString | fSessId |
| TString | fWorkDir |
| TList * | fSentCanvases |
| TRemoteObject * | fWorkingDir |
| TSocket * | fSocket |
| FILE * | fLogFile |
| TList * | fSentCanvases |
| TRemoteObject * | fWorkingDir |
Definition at line 42 of file TApplicationServer.h.
| TApplicationServer::TApplicationServer | ( | Int_t * | argc, | |
| char ** | argv, | |||
| FILE * | flog, | |||
| const char * | logfile | |||
| ) |
Referenced by G__G__Net_170_0_6().
| TApplicationServer::~TApplicationServer | ( | ) | [virtual] |
Definition at line 433 of file TApplicationServer.cxx.
References close, fLogFileDes, fSentCanvases, fSocket, kFALSE, SafeDelete, and TCollection::SetOwner().
| TApplicationServer::TApplicationServer | ( | Int_t * | argc, | |
| char ** | argv, | |||
| FILE * | flog, | |||
| const char * | logfile | |||
| ) |
| virtual TApplicationServer::~TApplicationServer | ( | ) | [virtual] |
| void TApplicationServer::ExecLogon | ( | ) | [private] |
Definition at line 1260 of file TApplicationServer.cxx.
References TSystem::AccessPathName(), TSystem::ConcatFileName(), gEnv, TROOT::GetMacroPath(), TEnv::GetValue(), gRootDir, gSystem, TSystem::HomeDirectory(), kReadPermission, name, TApplication::NoLogOpt(), TApplication::ProcessFile(), s, sname, TSystem::Which(), and TSystem::WorkingDirectory().
| Int_t TApplicationServer::Setup | ( | ) | [private] |
Definition at line 360 of file TApplicationServer.cxx.
References TSystem::AccessPathName(), TSystem::AddSignalHandler(), TSystem::ChangeDirectory(), TString::Data(), TObject::Error(), TSystem::ExpandPathName(), fLogFilePath, fSocket, fUrl, fWorkDir, TUrl::GetFile(), TSystem::GetPid(), gSystem, TSystem::HostName(), kKeepAlive, kMESS_ANY, kNoDelay, kProcessGroup, kROOTD_PROTOCOL, kRRemote_Protocol, kTRUE, TSystem::mkdir(), TSocket::Send(), TSocket::SetOption(), snprintf, str, TObject::SysError(), TSystem::Unlink(), workdir, and TSystem::WorkingDirectory().
| Int_t TApplicationServer::SendCanvases | ( | ) | [private] |
Definition at line 878 of file TApplicationServer.cxx.
References TList::Add(), TList::FirstLink(), fSentCanvases, fSocket, gDebug, TROOT::GetListOfCanvases(), TObjLink::GetObject(), gROOT, TObject::Info(), kFALSE, kMESS_OBJECT, TObject::kNotDeleted, kTRUE, nc, TObjLink::Next(), o, TMessage::Reset(), TSocket::Send(), TObject::TestBit(), and TMessage::WriteObject().
Referenced by HandleSocketInput().
| void TApplicationServer::HandleCheckFile | ( | TMessage * | mess | ) | [protected] |
Definition at line 1047 of file TApplicationServer.cxx.
References TString::Data(), TMD5::FileChecksum(), fSocket, gDebug, TObject::Info(), kFALSE, kMESS_ANY, kRRT_CheckFile, kTRUE, m, md5, and TSocket::Send().
Referenced by HandleSocketInput().
| void TApplicationServer::ErrorHandler | ( | Int_t | level, | |
| Bool_t | abort, | |||
| const char * | location, | |||
| const char * | msg | |||
| ) | [static, protected] |
Definition at line 1076 of file TApplicationServer.cxx.
References TSystem::Abort(), buf, TString::CompareTo(), TString::Data(), fflush(), fprintf(), gEnv, gErrorIgnoreLevel, TEnv::GetValue(), gSystem, TString::IsNull(), kBreak, kError, kFatal, TString::kIgnoreCase, kInfo, kLogCons, kLogErr, kLogInfo, kLogLocal5, kLogPid, kLogWarning, kPrint, kSysError, kUnset, kWarning, TSystem::Openlog(), TSystem::StackTrace(), TSystem::Syslog(), and type.
| void TApplicationServer::GetOptions | ( | Int_t * | argc, | |
| char ** | argv | |||
| ) | [virtual] |
Reimplemented from TApplication.
Definition at line 445 of file TApplicationServer.cxx.
References TString::Atoi(), TString::BeginsWith(), TSystem::Exit(), TObject::Fatal(), fProtocol, fUrl, gDebug, gSystem, TString::ReplaceAll(), and TUrl::SetUrl().
Referenced by G__G__Net_220_0_7().
| Int_t TApplicationServer::GetProtocol | ( | ) | const [inline] |
Definition at line 78 of file TApplicationServer.h.
References fProtocol.
Referenced by G__G__Net_170_0_8(), and G__G__Net_252_0_3().
| Int_t TApplicationServer::GetPort | ( | ) | const [inline] |
Definition at line 79 of file TApplicationServer.h.
References fUrl, and TUrl::GetPort().
Referenced by G__G__Net_152_0_22(), G__G__Net_170_0_9(), G__G__Net_220_0_8(), G__G__Net_252_0_2(), and G__G__Net_275_0_26().
| const char* TApplicationServer::GetUser | ( | ) | const [inline] |
Definition at line 80 of file TApplicationServer.h.
References fUrl, and TUrl::GetUser().
Referenced by G__G__Net_170_0_10(), G__G__Net_220_0_5(), and G__G__Net_250_0_19().
| const char* TApplicationServer::GetHost | ( | void | ) | const [inline] |
Definition at line 81 of file TApplicationServer.h.
References fUrl, and TUrl::GetHost().
Referenced by G__G__Net_170_0_11(), G__G__Net_220_0_4(), G__G__Net_250_0_12(), and G__G__Net_275_0_25().
| TSocket* TApplicationServer::GetSocket | ( | ) | const [inline] |
Definition at line 82 of file TApplicationServer.h.
References fSocket.
Referenced by G__G__Net_170_0_12(), and G__G__Net_208_0_34().
| void TApplicationServer::HandleSocketInput | ( | ) |
Definition at line 486 of file TApplicationServer.cxx.
References TObject::Error(), fLogFile, fRealTimeLog, fSocket, gDebug, TMessage::GetClass(), HandleCheckFile(), TObject::Info(), kFALSE, kMESS_ANY, kMESS_CINT, kMESS_OBJECT, kMESS_STRING, kRRT_CheckFile, kRRT_File, kRRT_Reset, kRRT_Terminate, kTRUE, name, ProcessLine(), TBufferFile::ReadObject(), TBufferFile::ReadString(), ReceiveFile(), TSocket::Recv(), Reset(), SendCanvases(), SendLogFile(), size, Terminate(), type, TObject::Warning(), TMessage::What(), and what.
Referenced by G__G__Net_170_0_13(), and TASInputHandler::Notify().
| void TApplicationServer::HandleUrgentData | ( | ) |
Definition at line 576 of file TApplicationServer.cxx.
References TObject::Error(), fLogFile, fRealTimeLog, fSocket, TSocket::GetOption(), gSystem, TObject::Info(), Interrupt(), kAtMark, kBytesToRead, kOob, kRRI_Hard, kRRI_Shutdown, kRRI_Soft, n, TSocket::RecvRaw(), SendLogFile(), TSocket::SendRaw(), TSystem::Sleep(), and Terminate().
Referenced by G__G__Net_170_0_14(), and TASInterruptHandler::Notify().
| void TApplicationServer::HandleSigPipe | ( | ) |
Definition at line 692 of file TApplicationServer.cxx.
References fLogFile, fRealTimeLog, fSocket, TObject::Info(), and Terminate().
Referenced by G__G__Net_170_0_15(), and TASSigPipeHandler::Notify().
| void TApplicationServer::Interrupt | ( | ) | [inline] |
Definition at line 87 of file TApplicationServer.h.
References fInterrupt, and kTRUE.
Referenced by G__G__Net_162_0_14(), G__G__Net_165_0_17(), G__G__Net_170_0_16(), and HandleUrgentData().
| Bool_t TApplicationServer::IsValid | ( | ) | const [inline] |
Definition at line 88 of file TApplicationServer.h.
References fIsValid.
Referenced by G__G__Net_152_0_37(), G__G__Net_165_0_18(), G__G__Net_170_0_17(), and G__G__Net_174_0_8().
| Long_t TApplicationServer::ProcessLine | ( | const char * | line, | |
| Bool_t | = kFALSE, |
|||
| Int_t * | err = 0 | |||
| ) | [virtual] |
Reimplemented from TApplication.
Definition at line 1170 of file TApplicationServer.cxx.
References TSystem::AccessPathName(), TSystem::BaseName(), TString::Data(), TObject::Error(), fSocket, gDebug, TROOT::GetMacroPath(), gSystem, TObject::Info(), kFALSE, kMESS_ANY, kReadPermission, kRRT_File, kRRT_SendFile, kTRUE, kWritePermission, m, name, TApplication::ProcessLine(), ReceiveFile(), TSocket::Recv(), TSocket::Send(), size, TSystem::SplitAclicMode(), type, TMessage::What(), TSystem::Which(), and TSystem::WorkingDirectory().
Referenced by HandleSocketInput().
| void TApplicationServer::Reset | ( | const char * | dir | ) |
Definition at line 705 of file TApplicationServer.cxx.
References TDirectory::cd(), TDirectory::Delete(), gDirectory, gROOT, and TROOT::Reset().
Referenced by G__G__Net_150_0_12(), G__G__Net_170_0_19(), G__G__Net_215_0_2(), and HandleSocketInput().
Definition at line 723 of file TApplicationServer.cxx.
References buf, close, TObject::Error(), fSocket, i, j, k, kMAXBUF, Long64_t, open, p, TSocket::RecvRaw(), TObject::SysError(), w, and write.
Referenced by G__G__Net_170_0_20(), HandleSocketInput(), and ProcessLine().
Reimplemented from TApplication.
Definition at line 471 of file TApplicationServer.cxx.
References TObject::Error(), TSystem::Exit(), fIsValid, gSystem, and TApplication::Run().
Definition at line 797 of file TApplicationServer.cxx.
References buf, fflush(), fLogFileDes, fSocket, TSystem::GetErrno(), kFALSE, kMAXBUF, kMESS_ANY, kRRT_LogDone, kRRT_LogFile, kTRUE, len, lseek, m, read, TSystem::ResetErrno(), SEEK_CUR, SEEK_END, SEEK_SET, TSocket::Send(), TSocket::SendRaw(), and TObject::SysError().
Referenced by G__G__Net_170_0_22(), HandleSocketInput(), and HandleUrgentData().
| Int_t TApplicationServer::BrowseDirectory | ( | const char * | dirname | ) |
Definition at line 915 of file TApplicationServer.cxx.
References TRemoteObject::Browse(), dir(), fSocket, fWorkDir, fWorkingDir, kMESS_OBJECT, list, nc, TMessage::Reset(), TSocket::Send(), and TMessage::WriteObject().
Referenced by G__G__Net_170_0_23().
| Int_t TApplicationServer::BrowseFile | ( | const char * | fname | ) |
Definition at line 943 of file TApplicationServer.cxx.
References TDirectory::cd(), classname, dir(), TCollection::FindObject(), Form(), fSocket, TROOT::GetListOfFiles(), TNamed::GetName(), TNamed::GetTitle(), gROOT, kMESS_OBJECT, list, nc, TROOT::ProcessLine(), TMessage::Reset(), TSocket::Send(), TRemoteObject::SetFolder(), TRemoteObject::SetKeyClassName(), TRemoteObject::SetRemoteAddress(), and TMessage::WriteObject().
Referenced by G__G__Net_170_0_24().
| Int_t TApplicationServer::BrowseKey | ( | const char * | keyname | ) |
Definition at line 999 of file TApplicationServer.cxx.
References Form(), fSocket, gROOT, kMESS_OBJECT, nc, TROOT::ProcessLine(), TMessage::Reset(), TSocket::Send(), and TMessage::WriteObject().
Referenced by G__G__Net_170_0_25().
| void TApplicationServer::Terminate | ( | Int_t | status | ) | [virtual] |
Reimplemented from TApplication.
Definition at line 1017 of file TApplicationServer.cxx.
References cleanup(), TSystem::Exit(), fclose(), fLogFile, fLogFilePath, gDebug, TSystem::GetListOfFileHandlers(), gSystem, TSystem::RemoveFileHandler(), and TSystem::Unlink().
Referenced by HandleSigPipe(), HandleSocketInput(), and HandleUrgentData().
| void TApplicationServer::ExecLogon | ( | ) | [private] |
| Int_t TApplicationServer::Setup | ( | ) | [private] |
| Int_t TApplicationServer::SendCanvases | ( | ) | [private] |
| void TApplicationServer::HandleCheckFile | ( | TMessage * | mess | ) | [protected] |
| static void TApplicationServer::ErrorHandler | ( | Int_t | level, | |
| Bool_t | abort, | |||
| const char * | location, | |||
| const char * | msg | |||
| ) | [static, protected] |
| void TApplicationServer::GetOptions | ( | Int_t * | argc, | |
| char ** | argv | |||
| ) | [virtual] |
Reimplemented from TApplication.
| Int_t TApplicationServer::GetProtocol | ( | ) | const [inline] |
| Int_t TApplicationServer::GetPort | ( | ) | const [inline] |
| const char* TApplicationServer::GetUser | ( | ) | const [inline] |
| const char* TApplicationServer::GetHost | ( | void | ) | const [inline] |
| TSocket* TApplicationServer::GetSocket | ( | ) | const [inline] |
| void TApplicationServer::HandleSocketInput | ( | ) |
| void TApplicationServer::HandleUrgentData | ( | ) |
| void TApplicationServer::HandleSigPipe | ( | ) |
| void TApplicationServer::Interrupt | ( | ) | [inline] |
| Bool_t TApplicationServer::IsValid | ( | ) | const [inline] |
| Long_t TApplicationServer::ProcessLine | ( | const char * | line, | |
| Bool_t | = kFALSE, |
|||
| Int_t * | err = 0 | |||
| ) | [virtual] |
Reimplemented from TApplication.
| void TApplicationServer::Reset | ( | const char * | dir | ) |
Reimplemented from TApplication.
| Int_t TApplicationServer::BrowseDirectory | ( | const char * | dirname | ) |
| Int_t TApplicationServer::BrowseFile | ( | const char * | fname | ) |
| Int_t TApplicationServer::BrowseKey | ( | const char * | keyname | ) |
| void TApplicationServer::Terminate | ( | Int_t | status | ) | [virtual] |
Reimplemented from TApplication.
Int_t TApplicationServer::fProtocol [private] |
TUrl TApplicationServer::fUrl [private] |
Definition at line 46 of file TApplicationServer.h.
Referenced by GetHost(), GetOptions(), GetPort(), GetUser(), and Setup().
TSocket* TApplicationServer::fSocket [private] |
Definition at line 47 of file TApplicationServer.h.
Referenced by BrowseDirectory(), BrowseFile(), BrowseKey(), GetSocket(), HandleCheckFile(), HandleSigPipe(), HandleSocketInput(), HandleUrgentData(), ProcessLine(), ReceiveFile(), SendCanvases(), SendLogFile(), Setup(), and ~TApplicationServer().
Bool_t TApplicationServer::fIsValid [private] |
Bool_t TApplicationServer::fInterrupt [private] |
TString TApplicationServer::fLogFilePath [private] |
FILE* TApplicationServer::fLogFile [private] |
Definition at line 52 of file TApplicationServer.h.
Referenced by HandleSigPipe(), HandleSocketInput(), HandleUrgentData(), and Terminate().
Int_t TApplicationServer::fLogFileDes [private] |
Definition at line 53 of file TApplicationServer.h.
Referenced by SendLogFile(), and ~TApplicationServer().
Bool_t TApplicationServer::fRealTimeLog [private] |
Definition at line 54 of file TApplicationServer.h.
Referenced by HandleSigPipe(), HandleSocketInput(), and HandleUrgentData().
TString TApplicationServer::fSessId [private] |
Definition at line 56 of file TApplicationServer.h.
TString TApplicationServer::fWorkDir [private] |
Reimplemented from TApplication.
Definition at line 58 of file TApplicationServer.h.
Referenced by BrowseDirectory(), and Setup().
TList* TApplicationServer::fSentCanvases [private] |
Definition at line 60 of file TApplicationServer.h.
Referenced by SendCanvases(), and ~TApplicationServer().
TRemoteObject* TApplicationServer::fWorkingDir [private] |
TSocket* TApplicationServer::fSocket [private] |
Definition at line 47 of file TApplicationServer.h.
FILE* TApplicationServer::fLogFile [private] |
Definition at line 52 of file TApplicationServer.h.
TList* TApplicationServer::fSentCanvases [private] |
Definition at line 60 of file TApplicationServer.h.
TRemoteObject* TApplicationServer::fWorkingDir [private] |
Definition at line 61 of file TApplicationServer.h.
1.5.1