#include "TMessage.h" #include "TSocket.h" void Clnt(Int_t port = 3000) { TSocket *s = new TSocket("localhost", port); if (s->IsValid()) { TMessage *msg; s->Recv(msg); TString ss; (*msg) >> ss; cout << "Got: " << ss.Data() << endl; delete msg; } if (s) delete s; }