- ret = _Wait(seconds, milliseconds, GSOCK_CONNECTION_FLAG | GSOCK_LOST_FLAG);
-
- // GRG: m_connected and m_establishing will be updated in
- // OnRequest(), but we do it here anyway because sometimes
- // the event might be a bit delayed, and if that happens,
- // when WaitOnConnect() returns, m_connected will still be
- // FALSE. We have to do it as well in OnRequest because
- // maybe WaitOnConnect() is not being used...
-
- if (ret)
- {
- m_connected = GSocket_Select(m_socket, GSOCK_CONNECTION_FLAG);
- m_establishing = FALSE;
- }
-
- return m_connected;