Jacek Caban
60f8ddbf9d
server: Create ifchange async queue on socket fd.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-13 18:22:00 +02:00
Jacek Caban
93863d25fc
ws2_32: Pass completion routing to NtDeviceIoControlFile in server_ioctl_sock only if caller provided completion routine.
...
Otherwise we're always doing non-blocking calls, preventing server from
doing the right thing (and in actually doing the opposite in
WS_SIO_ADDRESS_LIST_CHANGE case).
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-13 18:21:11 +02:00
Bruno Jesus
a549245dfc
ws2_32: Fix handling of POLLHUP in WSAPoll.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 11:53:17 +09:00
Bruno Jesus
77b391125f
ws2_32/tests: Add more SIO_ADDRESS_LIST_CHANGE tests.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 00:02:06 +09:00
Alistair Leslie-Hughes
f9d4057574
ws2_32: Accept shouldn't fail when addrlen32 is NULL.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-08 10:06:48 +09:00
Bruno Jesus
9a66463256
ws2_32/tests: Add non-interactive SIO_ADDRESS_LIST_CHANGE tests.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 22:15:18 +09:00
Sebastian Lackner
58f944bb4b
ws2_32/tests: Add basic tests for async messages.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 12:41:22 +09:00
Bruno Jesus
6e32b61503
ws2_32/tests: Add tests for InetNtopW.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-25 23:55:54 +09:00
André Hentschel
64732ccab4
ws2_32/tests: Turn a randomly behaving test into a trace.
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:49:50 +09:00
Francois Gouget
29ae5f8e9b
ws2_32/tests: Fix a typo in a comment.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-04 11:01:14 +09:00
Bruno Jesus
134bf22b8c
ws2_32: Ensure default route IP addresses are returned first in gethostbyname.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-20 20:06:38 +09:00
Michael Müller
ea18c740f7
ws2_32: Fix getaddrinfo with IPPROTO_IPV6 protocol.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-26 14:49:47 +09:00
Michael Müller
59ffe4e321
ws2_32: Add semi-stub for DisconnectEx.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-21 13:36:37 +09:00
Michael Müller
0625dd8bf6
ws2_32/tests: Add initial tests for DisconnectEx.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-21 13:36:35 +09:00
Nikolay Sivov
944a0228f5
ws2_32/tests: Use todo_wine_if() in tests.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-17 13:08:18 +09:00
Sebastian Lackner
4d959241c8
ws2_32/tests: Add tests for getsockopt() with SO_SNDBUF and SO_RCVBUF optname.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 13:34:32 +09:00
Bruno Jesus
5913a107d8
ws2_32: Add WSAPoll() implementation.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-22 14:29:48 +01:00
André Hentschel
3701d7714e
ws2_32/tests: Don't test function directly when reporting WSAGetLastError().
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 15:38:25 +09:00
Bruno Jesus
a787321d62
ws2_32/tests: Ensure we have more than one IP to test gethostbyname.
...
Sebastian called my attention about his machine that has a single IP and
make test fails. In such cases it is safe to assume that the IP returned
is the default route so the test is meaningless in this situation.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 23:58:43 +09:00
Bruno Jesus
2056de01b5
ws2_32/tests: Check if the first IP is a default route in gethostbyname.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 00:12:51 +09:00
Bruno Jesus
7f06cd4ca2
ws2_32/tests: Add more tests related to WSACleanup.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-25 13:25:54 +09:00
Bruno Jesus
344cddb63a
ws2_32/tests: Add WSAPoll() tests.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 16:44:52 +09:00
Erich E. Hoover
effd2c4192
ws2_32: Add asynchronous support for TransmitFile.
...
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 19:19:08 +09:00
Erich E. Hoover
f1ebc93603
ws2_32: Add support for TransmitFile headers and footers.
...
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:40 +09:00
Erich E. Hoover
4d081f36ef
ws2_32: Implement a basic synchronous TransmitFile.
...
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:40 +09:00
Bruno Jesus
ad2405daa4
ws2_32/tests: Add WSAEnumNameSpaceProviders[A|W] tests.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 22:09:55 +09:00
Erich E. Hoover
109d4b914a
ws2_32: Check for invalid parameters in TransmitFile.
...
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
2015-10-07 21:28:55 +09:00
Sebastian Lackner
efb1b16dc8
ws2_32/tests: Add tests for InetPtonW.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-05 22:27:15 +09:00
André Hentschel
d0a5a32546
ws2_32/tests: Don't test function directly when reporting WSAGetLastError().
2015-09-25 20:59:33 +02:00
Marcus Meissner
5af9acadb6
ws2_32/tests: Fixed argument to GetComputerNameExW.
2015-09-10 17:22:43 +09:00
Bruno Jesus
4e01388a32
ws2_32/tests: Remove a dead assignment.
2015-09-09 16:18:21 +09:00
Bruno Jesus
18a02d8f41
ws2_32: Try harder to get the host name address in getaddrinfo.
2015-09-08 14:50:42 +09:00
Bruno Jesus
45677e173d
ws2_32: UDP sockets can write data even when unbound.
2015-06-19 17:01:05 +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
3d51b4eb9d
ws2_32/tests: Add tests for calling select with zero timeout.
2015-06-08 15:30:32 +09:00
Bruno Jesus
3c16babcce
ws2_32/tests: Fix a couple of wrong traces.
2015-05-14 14:24:44 +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
Francois Gouget
9561037fe0
ws2_32/tests: Add a trailing '\n' to an ok() call.
2015-04-23 19:43:28 +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
f01ccea4b5
ws2_32/tests: Add some more select() related tests.
2015-04-08 23:15:55 +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