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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user