65 fSock->
Send(
"get hpx");
68 fSock->
Send(
"get hpxpy");
71 fSock->
Send(
"get hprof");
75 if (fSock->
Recv(mess) <= 0) {
76 Error(
"Spy::DoButton",
"error receiving message");
80 if (fHist)
delete fHist;
97 fSock =
new TSocket(
"localhost", 9090);
114 fMain->AddFrame(fCanvas, fLcan);
119 fMain->AddFrame(fHorz, fLhorz);
126 fHpx->
Connect(
"Clicked()",
"Spy",
this,
"DoButton()");
130 fHpxpy->
Connect(
"Clicked()",
"Spy",
this,
"DoButton()");
134 fHprof->
Connect(
"Clicked()",
"Spy",
this,
"DoButton()");
139 fMain->AddFrame(fHorz2, fLhorz);
144 fConnect->
Connect(
"Clicked()",
"Spy",
this,
"Connect()");
147 fQuit->
SetCommand(
"gApplication->Terminate()");
152 fMain->SetWindowName(
"Spy on SpyServ");
153 fMain->MapSubwindows();
154 fMain->Resize(fMain->GetDefaultSize());
#define RQ_OBJECT(sender_class)
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
R__EXTERN void * gTQSender
TObject * ReadObject(const TClass *cl) override
Read object from I/O buffer.
void Update() override
Update canvas pad buffers.
Bool_t InheritsFrom(const char *cl) const
Return kTRUE if this class inherits from a class with name "classname".
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
A composite frame that layout their children in horizontal way.
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
Yield an action as soon as it is clicked.
TH1 is the base class of all histogram classes in ROOT.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
TClass * GetClass() const
void Modified(Bool_t flag=1) override
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
This class creates a TGCanvas in which a TCanvas is created.
TCanvas * GetCanvas() const
virtual Int_t Recv(TMessage *&mess)
Receive a TMessage object.
virtual Bool_t IsValid() const
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.