Revision 2d2701a8a8669add9e3db8661d8d773db7cedf1a authored by Rene Brun on 15 July 2003, 14:25:22 UTC, committed by Rene Brun on 15 July 2003, 14:25:22 UTC
- mode in TGLVcontainer::SetViewMode method That fixes layout problem in tree viewer - new constructor for TGPictureButton - code cleaning git-svn-id: http://root.cern.ch/svn/root/trunk@6938 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 063f657
pclient.C
void pclient(int niter = 100, int bsize = 500000, int nsocks = 5)
{
// Client 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
// If you want to run the pserv.C on a different host, just change
// "localhost" in the TPSocket ctor below to the desried hostname.
// Open connection to server
TPSocket *sock = new TPSocket("192.168.1.2", 9090, nsocks);
//TPSocket *sock = new TPSocket("pcroot2", 9090, nsocks);
char *buf = new char[bsize];
memset(buf, 65, bsize);
sock->Send(niter, bsize);
// send dat to server
for (int i = 0; i < niter; i++) {
int ret = sock->SendRaw(buf, bsize);
if (ret < 0) {
printf("error sending\n");
break;
}
}
delete sock;
delete [] buf;
}
Computing file changes ...