41 lines
821 B
C++
41 lines
821 B
C++
// This code implementation is the intellectual property of
|
|
// the RD44 GEANT4 collaboration.
|
|
//
|
|
// By copying, distributing or modifying the Program (or any work
|
|
// based on the Program) you indicate your acceptance of this statement,
|
|
// and all its terms.
|
|
//
|
|
// $Id: FRClient.h,v 1.1 1999/01/07 16:15:09 gunter Exp $
|
|
// GEANT4 tag $Name: geant4-00-01 $
|
|
//
|
|
// FRClient.h
|
|
// FukuiRenderer Client
|
|
// Yasuhide Sawada & Satoshi Tanaka
|
|
|
|
#ifdef G4VIS_BUILD_VRML_DRIVER
|
|
|
|
#ifndef FR_CLIENT_H
|
|
#define FR_CLIENT_H
|
|
|
|
#define FRSendLength 256
|
|
|
|
class FRClient {
|
|
public:
|
|
FRClient();
|
|
virtual ~FRClient();
|
|
|
|
int create();
|
|
int connect(const char *hostname, int port);
|
|
|
|
int send(const char *sendbuf);
|
|
int receive(char *recvbuf);
|
|
|
|
int close();
|
|
protected:
|
|
int fd;
|
|
int port;
|
|
};
|
|
|
|
#endif //FR_CLIENT_H
|
|
#endif //G4VIS_BUILD_VRML_DRIVER
|