remove the now unused Connect_Timeout()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-12-27 21:49:35 +00:00
parent 5e9238f9c6
commit cf21e2fc0b
2 changed files with 0 additions and 28 deletions

View File

@@ -52,7 +52,6 @@ private:
wxSocketManager::Get()->Install_Callback(this); wxSocketManager::Get()->Install_Callback(this);
} }
wxSocketError Connect_Timeout();
int Recv_Stream(void *buffer, int size); int Recv_Stream(void *buffer, int size);
int Recv_Dgram(void *buffer, int size); int Recv_Dgram(void *buffer, int size);
int Send_Stream(const void *buffer, int size); int Send_Stream(const void *buffer, int size);

View File

@@ -528,33 +528,6 @@ int wxSocketImplMSW::Write(const void *buffer, int size)
/* Internals (IO) */ /* Internals (IO) */
/*
* For blocking sockets, wait until the connection is
* established or fails, or until timeout ellapses.
*/
wxSocketError wxSocketImplMSW::Connect_Timeout()
{
fd_set writefds;
fd_set exceptfds;
FD_ZERO(&writefds);
FD_ZERO(&exceptfds);
FD_SET(m_fd, &writefds);
FD_SET(m_fd, &exceptfds);
if (select(0, NULL, &writefds, &exceptfds, &m_timeout) == 0)
{
m_error = wxSOCKET_TIMEDOUT;
return wxSOCKET_TIMEDOUT;
}
if (!FD_ISSET(m_fd, &writefds))
{
m_error = wxSOCKET_IOERR;
return wxSOCKET_IOERR;
}
return wxSOCKET_NOERROR;
}
int wxSocketImplMSW::Recv_Stream(void *buffer, int size) int wxSocketImplMSW::Recv_Stream(void *buffer, int size)
{ {
return recv(m_fd, static_cast<char *>(buffer), size, 0); return recv(m_fd, static_cast<char *>(buffer), size, 0);