[vtkusers] how to tear down a connection??

Song Li lisong at vrac.iastate.edu
Mon Sep 9 13:22:37 EDT 2002


I am using vtkSocketController to transfer vtk objects via network. The
vtk classes I am using are:

vtkSocketCommunicator *comm;
vtkSocketController *sc;
vtkInputPort *ip;
vtkOutputPort *op;

on server side:

on client side:

Everything seems fine, but when I want to tear down the connection from
client side: comm->CloseConnection(); on the server side
comm->GetIsConnected() still return true, and I can not reconnect. Does
any body know how to disconnect without deleting those objects??? --and
also that is the difference between
vtkSocketCommunicator::CloseConnection() and
vtkSocketController::CloseConnection() ?? I've tried both and neither
Thank a lot!!!

Song Li
VRAC(Virtual Reality Application Center),Iowa State University
Email: lisong at vrac.iastate.edu
Homepage: http://www.vrac.iastate.edu/~lisong

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020909/abd5ab23/attachment.htm>

More information about the vtkusers mailing list