Ticket #11107 (closed defect: fixed)
wxSocketServer::WaitForAccept not waiting for incoming connections
| Reported by: | D39 | Owned by: | vadz |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.9.1 |
| Component: | network | Version: | 2.9-svn |
| Keywords: | WaitForAccept | Cc: | |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
i created wxSocketServer and bring him to wait for incoming connection with WaitForAccept(10).
but it returns immediately, without waiting, because there inside exist checking, which always false on my case...
as i think, this should work for wxSocketServer :)
wxSocketBase::DoWait(long timeout, wxSocketEventFlags flags)
{
wxCHECK_MSG( m_impl, -1, "can't wait on invalid socket" );
// we're never going to become ready if we're not connected (any more)
'''if ( !m_connected && !m_establishing )
return -1;'''
i using svn version with VS2008
Change History
Note: See
TracTickets for help on using
tickets.
