diff options
author | m <m@bitsnbites.eu> | 2019-03-31 18:10:34 +0200 |
---|---|---|
committer | Marcus Geelnard <marcus.geelnard@smarteye.se> | 2019-04-01 11:52:24 +0200 |
commit | 1d092a235aae92cb9a4fe260c385a850eadfc611 (patch) | |
tree | e561a2738ee0a1a5566a7c1e92f608bb629910a1 /sockcompat.h | |
parent | e84086cb92bfcab88e7dfd7760351e3d2a65950d (diff) |
Use recv/send instead of read/write
The recv/send calls are more portable than read/write, since unlike the
latter, the former work with Windows sockets.
We also check for EWOULDBLOCK instead of EAGAIN. On most Unices, EAGAIN
and EWOULDBLBOCK are the same thing. However, on Windows they are
different, and send/recv are expected to give EWOULDBLOCK for
non-blocking sockets.
Diffstat (limited to 'sockcompat.h')
0 files changed, 0 insertions, 0 deletions