Francois Gouget
96e15460e1
ws2_32/tests: Fix a race in sock.c:test_write_events().
...
Stop draining the socket to make sure we will be able to fill the send
buffer and trigger a short write.
2008-09-12 11:40:10 +02:00
Kai Blin
4b4109a647
ws2_32: Win98 closesocket() does not wake up select.
2008-09-11 14:38:21 +02:00
Kai Blin
93f1d48743
ws2_32: Win NT4 does not zero the sockaddr_in structure on getsockname.
...
All other versions of windows do, and this makes native dplay traces
much more readable, which is why Wine implements this as well. Mark
NT4 as broken, to make sure Wine doesn't regress.
2008-09-11 14:38:14 +02:00
Kai Blin
6f8d1aa8c2
ws2_32: Fix the SO_REUSEADDR tests to work on Win2k3 and newer.
...
It seems that with Win2k3, the meaning of SO_REUSEADDR got closer to
BSD semantics. This is nice, as it allows us to finally work like some
version of Windows here.
2008-09-10 11:20:28 +02:00
Jeff Zaroyko
15978ddc01
ws2_32: ioctlsocket should try to check if argp is valid.
2008-09-10 11:07:51 +02:00
Paul Vriens
c8aba692af
ws2_32/tests: Remove redundant NULL check before HeapFree.
2008-09-09 12:32:25 +02:00
Damjan Jovanovic
b904dd783c
ws2_32: Only enable FD_WRITE on short sends.
2008-09-08 14:09:16 +02:00
Paul Vriens
ea17a9192c
ws2_32/tests: Use CreateEventA for win9x.
2008-09-05 11:20:54 +02:00
Daniel Santos
b54b282a4f
ws2_32: WSASendTo() should clear last error on success.
2008-07-18 12:30:31 +02:00
Marcus Meissner
ebe7739987
ws2_32/tests: Initialize buffer to avoid valgrind warning.
2008-06-23 14:09:57 +02:00
Marcus Meissner
fb140649f4
ws2_32/tests: Initialize memory to send.
2008-06-21 11:54:55 +02:00
Jeff Zaroyko
30e6b81dd1
ws2_32: Ignore lpFrom for connected sockets.
...
If the the socket is connected and lpFrom is not NULL, Linux will set
msg_namelen to zero and ignore msg_name in recvfrom so don't try try
to update lpFrom.
2008-06-21 11:36:15 +02:00
Paul Vriens
9d566032bb
ws2_32/tests: Fix crash on win98.
2008-05-28 11:31:18 +02:00
Kai Blin
cabb350f2f
ws2_32: Add support for FROM_PROTOCOL_INFO to WSASocket().
2008-05-26 18:00:18 +02:00
Kai Blin
d88ee55e68
ws2_32: Test for invalid hostnames again.
2008-05-19 20:20:00 +02:00
Dan Kegel
95beaa21b8
ws2_32/tests: Cannot reliably detect bad hostnames in "modern" internet.
2008-05-14 13:36:38 +02:00
Michael Stefaniuc
af1986d6cc
ws2_32: Fix test output string to match the test.
2008-05-06 11:24:58 +02:00
Kai Blin
6b007698d2
ws2_32: On Win98, SO_MAX_MSG_SIZE is 65527, not 65507.
2008-05-05 21:02:12 +02:00
Alexandre Julliard
4c4544910e
ws2_32/tests: Fix the gethostname prototype.
2008-04-29 20:17:50 +02:00
Kai Blin
c0a3ac5006
ws2_32: Handle gethostbyname call failure, add tests.
2008-04-28 14:33:03 +02:00
Austin English
79c0bc28ff
More spelling fixes.
2008-01-04 12:55:45 +01:00
Gerald Pfeifer
257f519eb5
ws2_32: Remove two noop checks.
2008-01-03 11:53:38 +01:00
Gerald Pfeifer
e3b5610825
ws2_32/tests: Fix error checking.
2007-11-14 11:59:42 +01:00
Kai Blin
d35c13c621
ws2_32: Cope with buggy apps passing setsockopt optval as a value instead of a pointer.
2007-11-12 13:03:57 +01:00
Philip Nilsson
65dbd2b114
ws2_32/tests: Add a testcase for binding with IPv6 and IPv4 on the same port.
2007-09-25 13:51:47 +02:00
Tijl Coosemans
1233b4b27b
ws2_32/tests: Don't wait for FD_CONNECT event when non-blocking connect() was successful.
2007-09-19 11:41:49 +02:00
Kai Blin
d89f2b4810
ws2_32: Return WSAEINVAL for unhandled address families in WSAStringToAddress.
...
Prepare for IPv6 support.
2007-06-29 13:47:30 +02:00
Damjan Jovanovic
1cf9436efe
ws2_32: getsockname should fail on unbound socket.
2007-06-15 12:40:20 +02:00
Damjan Jovanovic
b23d90a543
ws2_32: gethostbyname("") should work.
2007-06-01 12:40:40 +02:00
Damjan Jovanovic
8178f8fc88
ws2_32: Simplify some socket tests by adding a function that generates a pair of connected sockets.
2007-05-25 20:20:58 +02:00
Paul Vriens
f570fd314c
ws2_32/tests: Add required parameter to CreateThread (for Win9x and WinME).
2007-04-25 12:44:09 +02:00
Michael Stefaniuc
57d2002351
ws2_32/tests: Remove redundant NULL check before HeapFree().
2007-04-11 11:20:40 +02:00
Damjan Jovanovic
e39dca6af6
ws2_32: WSASendTo should always re-enable the FD_WRITE event.
2007-03-22 11:28:16 +01:00
Damjan Jovanovic
665e8a5e64
ws2_32: In some cases send should block until the entire buffer is sent.
2007-03-20 12:39:17 +01:00
Hans Leidekker
bde4e36208
ws2_32: Handle NULL argument in inet_addr.
2007-02-26 13:37:59 +01:00
Francois Gouget
f54caadc49
ws2_32/tests: Use '%d' to print GetLastError().
2007-01-04 11:26:25 +01:00
Kai Blin
6055c667e9
ws2_32: ws_sockaddr_u2ws should zero the sockaddr_in.sin_zero field.
2006-12-20 15:47:31 +01:00
Damjan Jovanovic
526e1353e6
ws2_32: Added tests for closesocket cancelling pending I/O operations.
2006-12-04 18:02:17 +01:00
Kai Blin
2a4df56548
ws2_32: Rewrite getsockopt to make it more readable.
2006-12-04 13:43:10 +01:00
Kai Blin
7e6b7d21b9
ws2_32: Implement SO_GET_MAX_MSG_SIZE for getsockopt.
2006-11-29 12:36:35 +01:00
Michael Stefaniuc
a279570d15
ws2_32/tests: Win64 printf format warning fixes.
2006-10-09 12:55:39 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Alexandre Julliard
af781f398a
winsock: Renamed the winsock directory to ws2_32.
2006-03-15 09:57:30 +01:00