<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi,
<br> I am quite confused with these lines in vtkSocketCommunicator::WaitForConnection(int
port) in VTK4.0:
<p> if ( bind(sock, (sockaddr *)&server, sizeof(server)) )
<br> {
<br> vtkErrorMacro("Can not bind socket to port " <<
port);
<br> return 0;
<br> }
<p>As I know "bind" returns -1 when there is error, so why it isn't look
like " if ( bind(sock, (sockaddr *)&server, sizeof(server)) < 0
)" ? A bug??
<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>