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,...)
R__EXTERN void * gTQSender
virtual TObject * ReadObject(const TClass *cl)
Read object from I/O buffer.
virtual void Update()
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.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
TClass * GetClass() const
void Modified(Bool_t flag=1)
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.
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.