removed debugging code which shouldn't be there :-)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -485,12 +485,10 @@ GSocketError GSocket_Connect(GSocket *sck, GSocketStream stream)
|
|||||||
close(sck->m_fd);
|
close(sck->m_fd);
|
||||||
sck->m_fd = -1;
|
sck->m_fd = -1;
|
||||||
/* sck->m_error is set in _GSocket_Output_Timeout */
|
/* sck->m_error is set in _GSocket_Output_Timeout */
|
||||||
fprintf(stderr, "Blocking connect timeouts\n");
|
|
||||||
return GSOCK_TIMEDOUT;
|
return GSOCK_TIMEDOUT;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Blocking connect OK\n");
|
|
||||||
return GSOCK_NOERROR;
|
return GSOCK_NOERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -505,7 +503,6 @@ GSocketError GSocket_Connect(GSocket *sck, GSocketStream stream)
|
|||||||
{
|
{
|
||||||
sck->m_error = GSOCK_WOULDBLOCK;
|
sck->m_error = GSOCK_WOULDBLOCK;
|
||||||
sck->m_establishing = TRUE;
|
sck->m_establishing = TRUE;
|
||||||
fprintf(stderr, "Nonblocking connect in progress\n");
|
|
||||||
|
|
||||||
return GSOCK_WOULDBLOCK;
|
return GSOCK_WOULDBLOCK;
|
||||||
}
|
}
|
||||||
@@ -517,11 +514,9 @@ GSocketError GSocket_Connect(GSocket *sck, GSocketStream stream)
|
|||||||
sck->m_fd = -1;
|
sck->m_fd = -1;
|
||||||
sck->m_error = GSOCK_IOERR;
|
sck->m_error = GSOCK_IOERR;
|
||||||
|
|
||||||
fprintf(stderr, "Connect failed (generic err)\n");
|
|
||||||
return GSOCK_IOERR;
|
return GSOCK_IOERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "Connect OK\n");
|
|
||||||
return GSOCK_NOERROR;
|
return GSOCK_NOERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user