]> git.saurik.com Git - wxWidgets.git/commit - samples/sockets/server.cpp
Do wait for connection in the server socket.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 21 Aug 2009 15:25:09 +0000 (15:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 21 Aug 2009 15:25:09 +0000 (15:25 +0000)
commit1b4b6080913e757f6900b9e0912ab9dab91561a6
treefe0b0823ce29bea7e38f27351e9a96e1e69ae4ff
parentd94e9b623ac92b82e0497ab695882a48fa641d44
Do wait for connection in the server socket.

The code returned immediately from wxSocketBase::DoWait() if it wasn't
connected but it only made sense for the client sockets, not server ones which
could be calling this function precisely in order to wait until a connection
is made.

Also added a test for this bug in the sockets/server sample.

Closes #11107.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
samples/sockets/server.cpp
src/common/socket.cpp