* wxSocket seems to work with the async requester turned off.

Two things to fix:
       * async requester bug
       * GTK/GLIB idle loop wake up
  URL/HTTP/FTP/SocketServer/SocketClient seems to work (well, they work
  on my computer).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guilhem Lavaux
1999-05-23 16:09:45 +00:00
parent 6bc8a1c80b
commit 48da7d0ba8
3 changed files with 34 additions and 17 deletions

View File

@@ -543,7 +543,9 @@ void wxSocketBase::SetNotify(wxRequestNotify flags)
if (m_type != SOCK_SERVER)
flags &= ~REQ_ACCEPT;
m_internal->AcquireData();
m_neededreq = flags;
m_internal->ReleaseData();
if (m_neededreq == 0)
m_internal->StopWaiter();
else
@@ -691,10 +693,10 @@ void wxSocketBase::WantBuffer(char *buffer, size_t nbytes,
buf->timeout = 1000;
buf_timed_out = FALSE;
if (m_flags & SPEED)
if ((m_flags & SPEED) != 0)
m_internal->QueueRequest(buf, FALSE);
else
if (m_flags & NOWAIT)
if ((m_flags & NOWAIT) != 0)
m_internal->QueueRequest(buf, TRUE);
else
m_internal->QueueRequest(buf, TRUE);