60 fSock->
Send(
"get hpx");
63 fSock->
Send(
"get hpxpy");
66 fSock->
Send(
"get hprof");
70 if (fSock->
Recv(mess) <= 0) {
71 Error(
"Spy::DoButton",
"error receiving message");
75 if (fHist)
delete fHist;
92 fSock =
new TSocket(
"localhost", 9090);
109 fMain->AddFrame(fCanvas, fLcan);
114 fMain->AddFrame(fHorz, fLhorz);
121 fHpx->
Connect(
"Clicked()",
"Spy",
this,
"DoButton()");
125 fHpxpy->
Connect(
"Clicked()",
"Spy",
this,
"DoButton()");
129 fHprof->
Connect(
"Clicked()",
"Spy",
this,
"DoButton()");
134 fMain->AddFrame(fHorz2, fLhorz);
139 fConnect->
Connect(
"Clicked()",
"Spy",
this,
"Connect()");
142 fQuit->
SetCommand(
"gApplication->Terminate()");
147 fMain->SetWindowName(
"Spy on SpyServ");
148 fMain->MapSubwindows();
149 fMain->Resize(fMain->GetDefaultSize());
virtual Bool_t IsValid() const
R__EXTERN void * gTQSender
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.
virtual Int_t Recv(TMessage *&mess)
Receive a TMessage object.
TCanvas * GetCanvas() const
virtual TObject * ReadObject(const TClass *cl)
Read object from I/O buffer.
void Error(const char *location, const char *msgfmt,...)
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...
virtual void Draw(Option_t *option="")
Draw this histogram with options.
#define RQ_OBJECT(sender_class)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Bool_t InheritsFrom(const char *cl) const
Return kTRUE if this class inherits from a class with name "classname".
TClass * GetClass() const
virtual void Update()
Update canvas pad buffers.
void Modified(Bool_t flag=1)