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());
TClass * GetClass() const
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.
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.
Bool_t InheritsFrom(const char *cl) const
Return kTRUE if this class inherits from a class with name "classname".
#define RQ_OBJECT(sender_class)
TCanvas * GetCanvas() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void Update()
Update canvas pad buffers.
void Modified(Bool_t flag=1)