38 printf(
"sendbuffer size: %d\n", val);
40 printf(
"recvbuffer size: %d\n", val);
45 adr =
s1->GetInetAddress();
50 TPad *pad1 =
new TPad(
"pad1",
"This is pad1",0.02,0.52,0.98,0.98,21);
51 TPad *pad2 =
new TPad(
"pad2",
"This is pad2",0.02,0.02,0.98,0.48,21);
71 printf(
"Client %d: %s\n", s==
s0 ? 0 : 1, str);
74 printf(
"No more active clients... stopping\n");
92 printf(
"*** Unexpected message ***\n");
98 printf(
"Client 0: bytes recv = %d, bytes sent = %d\n",
s0->GetBytesRecv(),
100 printf(
"Client 1: bytes recv = %d, bytes sent = %d\n",
s1->GetBytesRecv(),
TObject * ReadObject(const TClass *cl) override
Read object from I/O buffer.
char * ReadString(char *s, Int_t max) override
Read string from I/O buffer.
TH1 is the base class of all histogram classes in ROOT.
This class represents an Internet Protocol (IP) address.
void Print(Option_t *option="") const
Print internet address as string.
TClass * GetClass() const
TSocket * Select()
Return pointer to socket for which an event is waiting.
virtual void Add(TSocket *sock, Int_t interest=kRead)
Add socket to the monitor's active list.
Int_t GetActive(Long_t timeout=-1) const
Return number of sockets in the active list.
virtual void Remove(TSocket *sock)
Remove a socket from the monitor.
The most important graphics class in the ROOT system.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set Current pad.
void Draw(Option_t *option="") override
Draw Pad in Current pad (re-parent pad if necessary).
virtual TSocket * Accept(UChar_t Opt=0)
Accept a connection on a server socket.
virtual Int_t Recv(TMessage *&mess)
Receive a TMessage object.
virtual void Close(Option_t *opt="")
Close the socket.
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.
void Print(const char *filename="") const override=0
This method must be overridden when a class wants to print itself.