48 printf(
"ConnectToServer: host = %s, port = %d\n", host.
GetHostName(), port);
60 int idx = !strcmp(str,
"go 0") ? 0 : 1;
65 sock->SetCompressionLevel(1);
70 hpx =
new TH1F(
"hpx",
"This is the px distribution",100,-4,4);
73 hpx =
new TH2F(
"hpxpy",
"py vs px",40,-4,4,40,-4,4);
84 for (
int i = 0; i < 25000; i++) {
90 if (i && (i%kUPDATE) == 0) {
92 mess.WriteObject(hpx);
94 messlen += mess.Length();
95 cmesslen += mess.CompLength();
98 sock->Send(
"Finished");
101 printf(
"Average compression ratio: %g\n", messlen/cmesslen);
109 void UpdateBonjourRecords(
TList *records)
117 printf(
"UpdateBonjourRecords (resolved = %s)\n", resolved ?
"kTRUE" :
"kFALSE");
119 if (resolved)
return;
129 resolver->
Connect(
"RecordResolved(TInetAddress*,Int_t)", 0, 0,
130 "ConnectToServer(TInetAddress*,Int_t)");
144 browser->
Connect(
"CurrentBonjourRecordsChanged(TList*)", 0, 0,
145 "UpdateBonjourRecords(TList*)");
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
Int_t ResolveBonjourRecord(const TBonjourRecord &record)
Resolve Bonjour service to IP address and port.
const char * GetHostName() const
R__EXTERN void * gTQSender
virtual Int_t Recv(TMessage *&mess)
Receive a TMessage object.
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
This class represents an Internet Protocol (IP) address.
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
void Print(Option_t *opt="") const
Print TBonjourRecord.
virtual void Start(const char *name)
Starts Benchmark with the specified name.
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
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 SetFillColor(Color_t fcolor)
Set the fill area color.
R__EXTERN TBenchmark * gBenchmark
static void EnableSchemaEvolutionForAll(Bool_t enable=kTRUE)
Static function enabling or disabling the automatic schema evolution.
R__EXTERN TRandom * gRandom
const char * GetReplyDomain() const
Int_t BrowseForServiceType(const char *serviceType)
Tell Bonjour to start browsing for a specific type of service.
const char * GetRegisteredType() const
THist< 2, float, THistStatContent, THistStatUncertainty > TH2F