diff options
author | Spencer Low <CompareAndSwap@gmail.com> | 2015-10-18 16:45:09 -0700 |
---|---|---|
committer | Spencer Low <CompareAndSwap@gmail.com> | 2015-10-18 16:45:09 -0700 |
commit | 0a79600e723de2da76ce7f3a44fb3821a484931b (patch) | |
tree | 90e67a46bffc77be6096c0f129c1bc22d13482bd /libutils/LinearTransform.cpp | |
parent | fb371d6a6bc59be3eebf089b93b5aa07ad13b5b2 (diff) |
adb: win32: Improve Winsock error code mappings and strings
Improved mapping of Winsock error codes to POSIX error codes, especially
WSAECONNABORTED to EPIPE (which WriteFdExactly() looks for) when sending
to a closed socket and WSAECONNRESET to ECONNRESET when the peer resets
the connection.
Use a macro to map strerror() to adb_strerror() which handles these
POSIX error codes that the Windows C Runtime doesn't recognize.
Also:
* Unittest for adb_strerror().
* Don't trace when send() returns WSAEWOULDBLOCK because that is
expected.
Change-Id: If46aeb7b36de3eebfbbccf5478ff5b1bb087714b
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
Diffstat (limited to 'libutils/LinearTransform.cpp')
0 files changed, 0 insertions, 0 deletions