ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
hserv2bonj.C File Reference

Go to the source code of this file.

Functions

pad1 Draw ()
 
reg RegisterService (TBonjourRecord(Form("hserv2 on %s", gSystem->HostName()),"_hserv2._tcp",""), 9090)
 
mon Add (ss)
 
 while (1)
 
 printf ("Client 0: bytes recv = %d, bytes sent = %d\n", s0->GetBytesRecv(), s0->GetBytesSent())
 
 printf ("Client 1: bytes recv = %d, bytes sent = %d\n", s1->GetBytesRecv(), s1->GetBytesSent())
 
s0 Close ()
 

Variables

TPadpad1 = new TPad("pad1","This is pad1",0.02,0.52,0.98,0.98,21)
 
TPadpad2 = new TPad("pad2","This is pad2",0.02,0.02,0.98,0.48,21)
 
TBonjourRegistrarreg = new TBonjourRegistrar
 
TServerSocketss = new TServerSocket(9090, kTRUE)
 
TMonitormon = new TMonitor
 
TSockets0 = 0
 
TSockets1 = 0
 

Function Documentation

mon Add ( ss  )
s0 Close ( )
pad1 Draw ( )
printf ( "Client 0: bytes  recv = %d)

Referenced by while().

printf ( "Client 1: bytes  recv = %d)
reg RegisterService ( TBonjourRecord(Form("hserv2 on %s", gSystem->HostName()),"_hserv2._tcp","")  ,
9090   
)
while ( )

Definition at line 43 of file hserv2bonj.C.

Variable Documentation

TMonitor* mon = new TMonitor

Definition at line 37 of file hserv2bonj.C.

TPad* pad1 = new TPad("pad1","This is pad1",0.02,0.52,0.98,0.98,21)

Definition at line 22 of file hserv2bonj.C.

TPad* pad2 = new TPad("pad2","This is pad2",0.02,0.02,0.98,0.48,21)

Definition at line 23 of file hserv2bonj.C.

TSocket* s0 = 0

Definition at line 41 of file hserv2bonj.C.

TSocket * s1 = 0

Definition at line 41 of file hserv2bonj.C.

Referenced by while().

TServerSocket* ss = new TServerSocket(9090, kTRUE)

Definition at line 35 of file hserv2bonj.C.