Server program to test parallel sockets.
To run this demo do the following:
- Open two windows
- Start ROOT in all two windows
- Execute in the first window: .x pserv.C
- Execute in the second window: .x pclient.C
{
printf(
"Receive %d buffers of %d bytes over %d parallel sockets...\n",
char *buf =
new char[
bsize];
for (
int i = 0; i <
niter; i++) {
break;
}
if (buf[0] != 65) {
printf(
"received data corrupted\n");
break;
}
}
delete sock;
delete [] buf;
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Int_t Recv(TMessage *&mess) override
Receive a TMessage object.
Int_t RecvRaw(void *buffer, Int_t length, ESendRecvOptions opt=kDefault) override
Send a raw buffer of specified length.
- Author
- Fons Rademakers
Definition in file pserv.C.