use struct timeval and not a long to store socket timeout under Unix too

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-11-23 13:39:12 +00:00
parent ebf94940c4
commit 87c0312a66
3 changed files with 6 additions and 16 deletions

View File

@@ -231,12 +231,8 @@ void GSocketBase::Shutdown()
*/
void GSocketBase::SetTimeout(unsigned long millis)
{
#ifdef __WXMSW__
m_timeout.tv_sec = (millis / 1000);
m_timeout.tv_usec = (millis % 1000) * 1000;
#else
m_timeout = millis;
#endif
}
void GSocketBase::NotifyOnStateChange(GSocketEvent event)