27 TPad *pad1 =
new TPad(
"pad1",
"This is pad1",0.02,0.52,0.98,0.98,21);
28 TPad *pad2 =
new TPad(
"pad2",
"This is pad2",0.02,0.02,0.98,0.48,21);
35 "_hserv2._tcp",
""), 9090);
64 printf(
"only accept two client connections\n");
78 printf(
"Client %d: %s\n", s==s0 ? 0 : 1, str);
81 printf(
"No more active clients... stopping\n");
99 printf(
"*** Unexpected message ***\n");
105 printf(
"Client 0: bytes recv = %d, bytes sent = %d\n", s0->
GetBytesRecv(),
107 printf(
"Client 1: bytes recv = %d, bytes sent = %d\n", s1->GetBytesRecv(),
TClass * GetClass() const
virtual void Print(Option_t *option="") const
Print some global quantities for this histogram.
virtual void Remove(TSocket *sock)
Remove a socket from the monitor.
Int_t GetActive(Long_t timeout=-1) const
Return number of sockets in the active list.
UInt_t GetBytesRecv() const
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.
virtual Int_t Recv(TMessage *&mess)
Receive a TMessage object.
Int_t RegisterService(const TBonjourRecord &record, UShort_t servicePort)
Register Bonjour service.
virtual void Add(TSocket *sock, Int_t interest=kRead)
Add socket to the monitor's active list.
virtual TH1 * DrawCopy(Option_t *option="", const char *name_postfix="_copy") const
Copy this histogram and Draw in the current pad.
virtual TObject * ReadObject(const TClass *cl)
Read object from I/O buffer.
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
virtual char * ReadString(char *s, Int_t max)
Read string from I/O buffer.
virtual void Draw(Option_t *option="")
Draw Pad in Current pad (re-parent pad if necessary).
TSocket * Select()
Return pointer to socket for which an event is waiting.
virtual void Close(Option_t *opt="")
Close the socket.
R__EXTERN TSystem * gSystem
UInt_t GetBytesSent() const
The most important graphics class in the ROOT system.
char * Form(const char *fmt,...)
virtual const char * HostName()
Return the system's host name.
virtual void Update()
Update canvas pad buffers.
void Modified(Bool_t flag=1)