Bruno Jesus
45677e173d
ws2_32: UDP sockets can write data even when unbound.
2015-06-19 17:01:05 +09:00
Bruno Jesus
9d558c5c5f
ws2_32: Add a helper to get socket type.
2015-06-19 17:00:58 +09:00
Bruno Jesus
a0df3330c3
ws2_32: Trace accepted socket.
2015-06-16 16:51:31 +09:00
Bruno Jesus
213419961c
ws2_32/tests: Add UDP select() test for unbound socket.
2015-06-16 16:51:26 +09:00
Sebastian Lackner
f542a0c18b
ws2_32: Fix uninitialized memory access in do_poll (Coverity).
2015-06-08 15:30:42 +09:00
Sebastian Lackner
3d51b4eb9d
ws2_32/tests: Add tests for calling select with zero timeout.
2015-06-08 15:30:32 +09:00
Bruno Jesus
2a1ae98b55
ws2_32: Simplify select() to make its code more reusable.
2015-05-22 18:01:33 +09:00
Bruno Jesus
898abba880
ws2_32: Trace connect() success.
2015-05-14 14:24:44 +09:00
Bruno Jesus
3c16babcce
ws2_32/tests: Fix a couple of wrong traces.
2015-05-14 14:24:44 +09:00
Piotr Caban
51e77324dd
ws2_32: Fix ai_canonname buffer allocation in addrinfo_AtoW.
2015-05-11 15:19:05 +09:00
Sebastian Lackner
0d2817b161
ws2_32: Properly handle closing sockets during a select call.
...
Based on a patch by Bruno Jesus.
2015-05-05 23:15:31 +09:00
Alexandre Julliard
57e2d9ef75
ws2_32: Avoid UINT32_MAX.
2015-05-01 15:45:11 +09:00
Jacek Caban
edb780e87f
ws2_32: Use get_rcvsnd_timeo helper in getsockopt.
2015-04-28 15:33:37 +09:00
Jacek Caban
6a80fe9e6b
ws2_32: Call get_rcvsnd_timeo directly.
2015-04-28 15:33:35 +09:00
Jacek Caban
9e3a3f46fa
ws2_32: Avoid overflows in get_rcvsnd_timeo.
2015-04-28 15:33:32 +09:00
Francois Gouget
9561037fe0
ws2_32/tests: Add a trailing '\n' to an ok() call.
2015-04-23 19:43:28 +09:00
Sebastian Lackner
ea371a2446
ws2_32: Add a missing call to release_sock_fd.
2015-04-14 16:51:18 +09:00
Bruno Jesus
b69eb16816
ws2_32: Convert EBADF errno to ENOTSOCK.
2015-04-14 16:51:09 +09:00
Bruno Jesus
383ed3ce9a
ws2_32/tests: Add one more SO_ERROR test.
2015-04-14 16:50:48 +09:00
Bruno Jesus
2da8f9a9db
ws2_32/tests: Add more select() tests.
2015-04-13 15:08:49 +09:00
Bruno Jesus
61ed82fc86
ws2_32: Restore the local socket address that was bound with filter for getsockname().
2015-04-09 13:26:29 +09:00
Bruno Jesus
dcfde9a9df
ws2_32/tests: Add tests about retrieving the local address of an interface bound socket.
2015-04-09 13:26:24 +09:00
Bruno Jesus
71c60d15d3
ws2_32: Handle SO_ERROR manually in getsockopt().
...
As soon as SO_ERROR is read from getsockopt it is reset in the kernel,
when attempting a non-blocking connection the wine server reads
SO_ERROR first so when the application tries to read the value it will
end with zero.
2015-04-08 23:16:40 +09:00
Bruno Jesus
b34ca6f4fe
ws2_32: Add a more generic function to retrieve socket errors from server.
2015-04-08 23:16:24 +09:00
Bruno Jesus
f01ccea4b5
ws2_32/tests: Add some more select() related tests.
2015-04-08 23:15:55 +09:00
Bruno Jesus
d945234c13
ws2_32: Shortcut socket() to WSASocketW instead of WSASocketA.
2015-04-07 15:11:27 +09:00
Bruno Jesus
a07d4e44d0
ws2_32: Better trace shutdown().
2015-04-07 15:11:09 +09:00
Michael Müller
0601c86542
ws2_32: Don't return an error in WS_select when EINTR happens during timeout.
2015-04-06 16:10:14 +09:00
Bruno Jesus
5c8aad8d76
ws2_32: Fix copy & paste error in fd_sets_to_poll (Coverity).
2015-04-06 12:10:45 +09:00
Alexandre Julliard
125b079f60
ws2_32: Include wsnwlink.h even without IPX support.
2015-04-04 11:55:56 +09:00
Bruno Jesus
846febbc3d
ws2_32: Better trace setsockopt/getsockopt.
2015-04-03 00:33:28 +09:00
Bruno Jesus
e845bded34
ws2_32: Fix return value when receiving with MSG_OOB without data to read.
2015-03-31 14:49:50 +09:00
Bruno Jesus
45d64ce26b
ws2_32/tests: Skip part of OOB test to unfreeze NT4 test.
...
NT4 doesn't care about OOB_INLINE and receives data in the wrong recv
call so the next call never receives data and hangs forever. Skip it
to resume NT4 test normally.
2015-03-31 14:49:31 +09:00
Bruno Jesus
5103291645
ws2_32/tests: Add more WSAEnumNetworkEvents tests.
2015-03-31 14:49:25 +09:00
Bruno Jesus
10d51ce855
ws2_32: Check for OOB data in select() calls when not OOB_INLINED.
2015-03-30 16:32:50 +09:00
Bruno Jesus
10f7265270
ws2_32: Do not poll unbound descriptors.
2015-03-30 16:32:36 +09:00
Bruno Jesus
b2556a2c34
ws2_32: Ensure sockets in exceptfds get set when an error occurs.
2015-03-30 16:31:53 +09:00
Bruno Jesus
57e7a562bd
ws2_32: Add a helper to check if a socket is bound or not.
2015-03-30 16:31:23 +09:00
Bruno Jesus
dcc0bae95d
ws2_32: Convert send/recv flags to native system.
2015-03-30 16:30:48 +09:00
Bruno Jesus
d73330e4d8
ws2_32: Don't try to receive data in an OOB_INLINED socket with MSG_OOB.
2015-03-30 16:29:39 +09:00
Frédéric Delanoy
f6a341c747
Assorted spelling/grammar fixes.
2015-03-27 22:29:48 +09:00
Francois Gouget
ae6e1e2e38
ws2_32: Add support for WSA_FLAG_NO_HANDLE_INHERIT.
2015-03-17 14:17:46 +09:00
Bruno Jesus
a19febc1a7
ws2_32/tests: Check the OOB mark in the right place.
2015-03-16 15:08:46 +09:00
Bruno Jesus
8042dbac55
ws2_32/tests: Improve some helper functions.
2015-03-16 15:08:38 +09:00
Qian Hong
bed1525fa4
ws2_32: Improved error handling in gethostname when name length is insufficient.
2015-03-13 22:28:30 +09:00
Bruno Jesus
0415407404
ws2_32/tests: Add more select() tests related to OOB handling.
2015-03-13 00:28:15 +09:00
Alexandre Julliard
91fc10847e
ws2_32: Use Win32 APIs for interlocked functions.
2015-03-11 14:21:10 +09:00
Bruno Jesus
18b3f4cadd
ws2_32/tests: Test the behavior of reading data from an OOBINLINE'd socket.
2015-03-11 12:48:13 +09:00
Bruno Jesus
b1fc62a213
ws2_32: Normalize socket tracing.
2015-03-11 12:46:27 +09:00
Michael Stefaniuc
58afc397cb
ws2_32: Avoid using bitwise operations on BOOLs (PVS-Studio).
2015-03-10 21:36:24 +09:00