15       controller =vtkSmartPointer<vtkSocketController>::New();
    28       ssocket=vtkSmartPointer<vtkServerSocket>::New();
    33       if (rc) 
throw std::runtime_error(
"vtkServerSocket::CreateServer failed\n");
    49       if (!rc) 
throw std::runtime_error(
"Server handshake failed\n");
    65         rc=ConnectTo(server,port);
    72       if (!rc) 
throw std::runtime_error(
"Client handshake failed");
    79       int icmd=
static_cast<int>(cmd);
   132       const int bufsize=256;
 int ClientConnect(const char *server, const int port)
 
Derived class from vtkSocketCommunicator providing framework for server-client communication. 
 
int server_listen_waiting_time
 
int ReceiveCharBuffer(char *buf, int ndata, int tag=static_cast< int >(Tag::CharBuffer))
 
int SendInt(int i, int tag=static_cast< int >(Tag::Int))
 
int ReceiveDoubleBuffer(double *buf, int ndata, int tag=static_cast< int >(Tag::DoubleBuffer))
 
int SendCommand(Command cmd, int tag=static_cast< int >(Tag::Command))
 
int ReceiveFloat(float &d, int tag=static_cast< int >(Tag::Float))
 
int server_listen_retry_timeout
 
int client_connect_retry_timeout
 
int ReceiveString(std::string &s, int tag=static_cast< int >(Tag::String))
 
vtkSmartPointer< vtkSocketController > controller
 
int ReceiveDouble(double &d, int tag=static_cast< int >(Tag::Double))
 
int SendDouble(double d, int tag=static_cast< int >(Tag::Double))
 
vtkSmartPointer< vtkServerSocket > ssocket
 
int ReceiveCommand(Command &cmd, int tag=static_cast< int >(Tag::Command))
 
int SendString(const std::string s, int tag=static_cast< int >(Tag::String))
 
int ReceiveFloatBuffer(float *buf, int ndata, int tag=static_cast< int >(Tag::FloatBuffer))
 
int SendDoubleBuffer(double *buf, int ndata, int tag=static_cast< int >(Tag::DoubleBuffer))
 
static Communicator * New()
 
int ReceiveInt(int &i, int tag=static_cast< int >(Tag::Int))
 
int SendCharBuffer(char *buf, int ndata, int tag=static_cast< int >(Tag::CharBuffer))
 
int SendFloatBuffer(float *buf, int ndata, int tag=static_cast< int >(Tag::FloatBuffer))
 
int client_connect_num_retry
 
int ServerConnect(const int port)
 
int SendFloat(float d, int tag=static_cast< int >(Tag::Float))
 
int server_listen_num_retry