From: Vadim Zeitlin Date: Sat, 27 Dec 2008 21:49:35 +0000 (+0000) Subject: remove the now unused Connect_Timeout() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cf21e2fc0bcb1c2f4c4aba2131e7a1756e2ba123 remove the now unused Connect_Timeout() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/private/sockmsw.h b/include/wx/msw/private/sockmsw.h index 13319931cd..5f722c5083 100644 --- a/include/wx/msw/private/sockmsw.h +++ b/include/wx/msw/private/sockmsw.h @@ -52,7 +52,6 @@ private: wxSocketManager::Get()->Install_Callback(this); } - wxSocketError Connect_Timeout(); int Recv_Stream(void *buffer, int size); int Recv_Dgram(void *buffer, int size); int Send_Stream(const void *buffer, int size); diff --git a/src/msw/sockmsw.cpp b/src/msw/sockmsw.cpp index 3522b97344..e0336fee60 100644 --- a/src/msw/sockmsw.cpp +++ b/src/msw/sockmsw.cpp @@ -528,33 +528,6 @@ int wxSocketImplMSW::Write(const void *buffer, int size) /* 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) { return recv(m_fd, static_cast(buffer), size, 0);