[vtkusers] a bug of VTK4.0 ?
Song Li
lisong at vrac.iastate.edu
Tue Mar 25 00:03:25 EST 2003
Hi,
I am quite confused with these lines in
vtkSocketCommunicator::WaitForConnection(int port) in VTK4.0:
if ( bind(sock, (sockaddr *)&server, sizeof(server)) )
{
vtkErrorMacro("Can not bind socket to port " << port);
return 0;
}
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??
--
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/20030324/526aab86/attachment.htm>
More information about the vtkusers
mailing list