]> git.saurik.com Git - wxWidgets.git/commit - src/common/socket.cpp
Add per-direction wxSocket wait flags and byte counters.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 22:21:44 +0000 (22:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 22:21:44 +0000 (22:21 +0000)
commit294a09aa8c034be9d00da145c4834174d5560214
tree269f1c12955614bea554c022286cd9e544a3601b
parentbe4162218d1d4cc7ea11ff4c0f7286c47086e3de
Add per-direction wxSocket wait flags and byte counters.

Allow to specify whether the socket should block until all the data is read or
written or, on the contrary, avoid blocking only when reading or writing
instead of always using the same behaviour in both directions.

Also add separate counters for the bytes read/written instead of using the
same one for both.

These changes make it possible to use the same socket for reading/writing in
different threads.

Closes #14506.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
include/wx/socket.h
interface/wx/socket.h
src/common/socket.cpp
tests/net/socket.cpp