[vtkusers] VTK sever socket and vtk client socket

Jay jayavardhanravi at outlook.com
Fri Nov 10 15:38:30 EST 2017


Yes, this can be achieved using the vtkServerSocket and vtkClientSocket

Pseudocode:

// Server Side
serverSocket.CreateServer(portNumber);
clientSocket = serverSocket.WaitForConnection(timeToWaitInms);
clientSocket.Send(data,length);
clientSocket.CloseSocket();

//Client Side
clientSocket.ConnectToServer(IpAddress, port);
clientSocket.Receive(data, length, readMode);
clientSocket.CloseSocket();

Regards,
Jay



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list