Define wxSOCKET_XXX flags as wxSOCKET_XXX_READ|wxSOCKET_XXX_WRITE.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 31 Oct 2012 00:17:17 +0000 (00:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 31 Oct 2012 00:17:17 +0000 (00:17 +0000)
commitd8986023a3931e9e8063a3612cfc0166bac2c14a
treefe7fe670d40393c049333c2cf08c421942e9830e
parent03e8dc0e40ebf575a6f377f5ca34a2a1bb603d55
Define wxSOCKET_XXX flags as wxSOCKET_XXX_READ|wxSOCKET_XXX_WRITE.

The recently introduced (in r72591) wxSOCKET_{WAITALL,NOWAIT}_{READ,WRITE}
flags weere for some reason completely different and unrelated to the existing
bidirectional wxSOCKET_{WAITALL,NOWAIT} ones. Change this by defining the
bidirectional version simply as the sum of the two others. This makes much
more sense than testing for either wxSOCKET_XXX or wxSOCKET_XXX_READ or
wxSOCKET_XXX_WRITE being specified.

And it also fixes an assert in wxSocketWaitModeChanger where a sanity check
failed when this class was used with wxSOCKET_WAITALL|wxSOCKET_WAITALL_READ.

See #14506.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/socket.h
src/common/socket.cpp