39#ifdef G4VIS_BUILD_VRML_DRIVER
47G4FRClient::G4FRClient()
54G4FRClient::~G4FRClient()
60G4bool G4FRClient::connect(
const char *hostname,
G4int port)
66 fFRClient =
new FRClient();
69 connected = (fFRClient->connect(hostname, port) < 0) ?
false :
true ;
74void G4FRClient::close()
81G4int G4FRClient::getPort()
const
86G4FRClient& G4FRClient::operator << (
G4int val)
89 sprintf(buf,
"%d", val);
94G4FRClient& G4FRClient::operator << (
G4double val)
97 sprintf(buf,
"%g", val);
102G4FRClient& G4FRClient::operator << (
const char *pval)
104 fFRClient->send(pval);
108G4FRClient& G4FRClient::operator << (G4FRClient& (*func)(G4FRClient&))