<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi,
<p>I am using vtkSocketController to transfer vtk objects via network.
The vtk classes I am using are:
<p>vtkSocketCommunicator *comm;
<br>vtkSocketController *sc;
<br>vtkInputPort *ip;
<br>vtkOutputPort *op;
<p>on server side:
<br>sc->SetCommunicator(comm);
<br>op->SetController(sc);
<p>on client side:
<br>sc->SetCommunicator(comm);
<br>ip->SetController(sc);
<p>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 works......
<br>Thank a lot!!!
<pre>--
Song Li
VRAC(Virtual Reality Application Center),Iowa State University
Email: lisong@vrac.iastate.edu
Homepage: <A HREF="http://www.vrac.iastate.edu/~lisong">http://www.vrac.iastate.edu/~lisong</A></pre>
</html>