Commit Graph

620 Commits

Author SHA1 Message Date
André Hentschel c5089d18b7 ws2_32: Remove unneeded shadow variable. 2012-04-23 11:42:45 +02:00
Bruno Jesus 3b2fcdd426 ws2_32/tests: Avoid crashing if getservbyname fails. 2012-04-11 19:12:30 +02:00
Bruno Jesus d209697073 ws2_32/tests: Update hostent struct tests. 2012-04-11 19:12:22 +02:00
Erich Hoover 1d49c66929 ws2_32: Implement IPV6_UNICAST_IF socket option. 2012-04-10 16:21:28 +02:00
Erich Hoover 313d36d5aa ws2_32: Implement IP_UNICAST_IF socket option. 2012-04-10 16:21:28 +02:00
Bruno Jesus 7d7995c66c ws2_32/tests: Add hostent struct tests for gethostbyname. 2012-04-09 12:06:52 +02:00
Jeff Latimer a84f7204af ws2_32: Make a common fixme more meaningful and return success. 2012-04-02 12:39:12 +02:00
Bruno Jesus 9f6ce27ede ws2_32/tests: Avoid usage of inet_ntoa since its return is static. 2012-04-02 12:38:51 +02:00
Bruno Jesus 70be64b2ba ws2_32: Handle NULL proto in WSAAsyncGetServByName. 2012-03-26 18:15:34 +02:00
Frédéric Delanoy 09213db643 ws2_32/tests: Remove dead code in test_completion_port (Coverity). 2012-01-30 11:57:10 +01:00
Francois Gouget f445325999 Assorted spelling fixes. 2012-01-23 16:07:32 +01:00
Ričardas Barkauskas 01195b2dd7 ws2_32/tests: Test AcceptEx behaviour more. 2012-01-18 17:53:29 +01:00
Marcus Meissner d34e0515fd ws2_32: Removed dead code (Coverity). 2012-01-03 12:37:57 +01:00
Ričardas Barkauskas 1bbe92e79b ws2_32: Don't post completion packet if sending fails with error immediately. 2011-12-28 18:59:48 +01:00
Ričardas Barkauskas fa4a90e6d2 ws2_32/tests: Test some completion port behavior. 2011-12-28 18:59:45 +01:00
Hans Leidekker c42989ed9a ws2_32: Return the right value for SO_CONNECT_TIME if the socket is not connected. 2011-12-19 20:15:51 +01:00
Francois Gouget c7cb3e6cb2 configure: Use errno.h instead of the non-standard sys/errno.h header. 2011-12-15 17:46:38 +01:00
Francois Gouget 3fe2d6e5fd include: Update the nldef.h and *mib.h headers. 2011-12-15 10:49:17 +01:00
Francois Gouget 644cd0ae17 include: Add a missing wincrypt.h include directive to mprapi.h.
Also add the USE_WC_PREFIX macro so one can cleanly deal with the CMSG_DATA conflict with sys/socket.h.
2011-12-13 18:59:03 +01:00
Bruno Jesus da6efc8f62 ws2_32: Fix a function name comment. 2011-12-05 12:22:54 +01:00
Bruno Jesus fc09bc4533 ws2_32: Remove duplicated code. 2011-11-28 16:40:50 +01:00
Bruno Jesus 743929e4f4 ws2_32: Fix function GetAcceptExSockaddrs. 2011-11-28 16:40:50 +01:00
Hans Leidekker 8e5d5bf58a ws2_32: Pass NULL nodename on to native getaddrinfo. 2011-11-24 17:17:30 +01:00
Bruno Jesus 06d759ed7e ws2_32: Invert SIOCATMARK logic. 2011-11-21 16:16:34 +01:00
Francois Gouget c9ae82da93 ws2_32: Delete the static critical section when unloading the dll. 2011-11-17 11:37:44 +01:00
Hans Leidekker 75be2284e1 ws2_32: Fix handling of NULL and empty hostname in getaddrinfo/GetAddrInfoW. 2011-11-15 19:37:29 +01:00
Matej Špindler 2e5718ba95 ws2_32: Test GetAddrInfo with zero port. 2011-11-14 15:25:24 +01:00
Andrew Talbot a38b3008c5 ws2_32: Remove unneeded address-of operator from array name. 2011-11-04 14:45:01 +01:00
Andrew Talbot 35555862fc ws2_32: Replace switch statement with more suitable if statement. 2011-10-21 12:11:51 +02:00
Andrew Talbot 4bebe6287c ws2_32: Mark a fall-through in a switch statement. 2011-10-21 12:11:45 +02:00
Bruno Jesus d278834dab ws2_32: Fix UDP LINGER support in getsockopt. 2011-10-04 15:26:22 -05:00
Hans Leidekker 94f431e3ee ws2_32: Avoid a crash in WS2_recv_base. 2011-09-14 14:55:46 +02:00
Bruno Jesus fd7b94bcd2 ws2_32: SO_OOBINLINE sockets must always return TRUE to SIOCATMARK request. 2011-09-13 17:17:00 +02:00
Bruno Jesus 8f3dabf3c4 ws2_32: Remove an unnecessary test. 2011-09-09 13:34:13 +02:00
Bruno Jesus 2e08b31f7c ws2_32: Fix support for SIO_KEEPALIVE_VALS. 2011-09-08 20:08:06 +02:00
Bruno Jesus 312f50a26f ws2_32: Avoid an unhandled exception in WSAIoctl. 2011-09-06 12:23:55 +02:00
Bruno Jesus 733c7f2c72 ws2_32: Fix a leak in WS2_AcceptEx. 2011-09-05 10:56:04 +02:00
Bruno Jesus bebc425bb5 ws2_32: Fix false-positive write fds on select(). 2011-08-24 11:45:18 +02:00
Bruno Jesus a1d177c6b6 ws2_32/tests: Add MSG_PEEK tests on recv(). 2011-08-22 16:14:32 +02:00
Frédéric Delanoy 7e309601f3 dlls: Assorted spelling fixes. 2011-08-03 14:15:50 +02:00
Frédéric Delanoy 754dffe1e5 ws2_32: Remove dead assignment (Clang). 2011-07-06 11:27:12 +02:00
Austin English eba8216fcc ws2_32: Define sipx_network / sipx_node for DragonFly BSD. 2011-07-01 17:29:37 +02:00
André Hentschel dc16a01fdf ws2_32: Handle null pointer for linger values. 2011-06-21 14:51:14 +02:00
Marcus Meissner f50b8b8ac1 ws2_32: Fixed select() number of fds (Coverity). 2011-06-16 16:42:19 +02:00
Hans Leidekker 3581d2c6d1 ws2_32: Accept NULL lpNumberOfBytesSent for overlapped calls to WSASend/To. 2011-06-14 13:09:29 +02:00
Lauri Kenttä 69ab564f5d ws2_32/tests: Make sure that a structure is initialized (LLVM/Clang). 2011-06-13 15:05:39 +02:00
André Hentschel 3437591e71 ws2_32/tests: Don't read return value when we don't test for it. 2011-06-13 11:31:17 +02:00
Andrew Nguyen a282c150fa ws2_32/tests: Fix some test thread procedure prototypes. 2011-06-03 17:44:06 +02:00
Andrew Nguyen e9e0df23b8 ws2_32/tests: Avoid casting a WSAAccept function pointer parameter in test_accept. 2011-06-03 17:43:59 +02:00
Peter Urbanec 78ab293d3f ws2_32/tests: Socket error handling and reporting tests. 2011-06-02 16:24:22 +02:00
Andrew Nguyen 9edafeb742 ws2_32: Avoid a crash with an optional pointer in WSAAsyncGetServByPort. 2011-06-01 16:14:30 +02:00
Andrew Nguyen 2c74796456 ws2_32/tests: Properly destroy the async test window. 2011-06-01 16:14:22 +02:00
Andrew Nguyen a5e0f09b52 ws2_32: Free the asynchronous query structure if thread creation fails. 2011-06-01 16:14:08 +02:00
Peter Urbanec d0067a5dc1 ws2_32/tests: Use WSAGetLastError() when reporting errors. 2011-05-31 18:32:57 +02:00
André Hentschel e47ef8ae54 ws2_32/tests: Initialize atmark (valgrind). 2011-05-31 11:12:33 +02:00
André Hentschel 979f872fc7 ws2_32/tests: Add test for SIOCATMARK. 2011-05-27 17:53:37 +02:00
Andrew Nguyen aca2385d6c include: Revise the Winsock include in windows.h to match the Windows SDK. 2011-05-19 17:38:30 +02:00
Hans Leidekker ee683f7162 ws2_32: Add a test to show that WSAIoctl is synchronous. 2011-05-02 16:38:34 +02:00
Alexandre Julliard de0b4a67d8 ws2_32: Signal overlapped completion in WSAIoctl. 2011-04-19 12:47:57 +02:00
Alexandre Julliard 7e208f4896 ws2_32: Merge ioctlsocket implementation into WSAIoctl. 2011-04-19 11:57:37 +02:00
Alexandre Julliard c4b67221d4 ws2_32: Use saner parameter names in WSAIoctl. 2011-04-19 11:34:42 +02:00
Hans Leidekker 8f07cdf975 ws2_32: Implement GetNameInfoW. 2011-03-29 13:51:47 +02:00
André Hentschel 42d3bd713d ws2_32: Downgrade FIXME for WS_SIO_SET_COMPATIBILITY_MODE to a TRACE. 2011-03-14 19:31:31 +01:00
Aric Stewart f520dec3e1 ws2_32: async_send with no buffers does not need to do any work. 2011-03-07 11:07:54 +01:00
Marcus Meissner ae0797150e ws2_32: name is never NULL as array (Coverity). 2011-02-24 12:40:30 +01:00
Alexandre Goujon 778757ba74 ws2_32: Make gethostbyname fail if WSAStartup was not called before. 2011-02-23 14:58:09 +01:00
Austin English 99012fe793 ws2_32/tests: Remove unneeded assignments (LLVM/Clang). 2011-02-09 09:27:11 -06:00
Joris Huizer 36c76573de ws2_32/tests: Don't test function directly when reporting GetLastError(). 2011-02-07 10:04:44 -06:00
Marcus Meissner 09e29486ae ws2_32: Implemented SO_CONNECT_TIME stub. 2011-01-26 17:31:40 +01:00
Mike Kaplinskiy f58c709b5f server: Fix connect failures on newer kernels. 2011-01-24 14:43:28 +01:00
Mike Kaplinskiy 27b51ce6b0 ws2_32: Finish an overlapped send only if we sent everything. 2011-01-24 14:43:27 +01:00
Mike Kaplinskiy a06144d9ca ws2_32: Use the iosb to keep track of how many bytes we sent. 2011-01-24 14:43:27 +01:00
Mike Kaplinskiy 388398bd05 ws2_32: Fix up iovecs after transmission in WS2_send instead of WS2_sendto. 2011-01-24 14:43:27 +01:00
Mike Kaplinskiy e6fee3596d ws2_32: Allow sending FD_WRITE right after scheduling the async.
The server won't actually send the event until the request is done.
2011-01-24 14:43:27 +01:00
Mike Kaplinskiy a0c810c177 ws2_32/tests: Add a test for an overlapped send. 2011-01-24 14:43:27 +01:00
Gerald Pfeifer 37f5080e1b ws2_32: Restructure and simplify debugstr_wsaioctl a bit. 2011-01-10 10:44:51 +01:00
Alexandre Julliard f89d80c276 ws2_32/tests: Avoid size_t in a trace. 2010-12-09 17:46:13 +01:00
Alexandre Julliard 58a1c0d50d ws2_32: Fix a compile failure when control messages are not supported. 2010-12-08 16:25:05 +01:00
Erich Hoover c134680321 ws2_32/tests: Add regression tests for WSARecvMsg and IP_PKTINFO. 2010-12-07 17:04:33 +01:00
Erich Hoover 54b4f836fd ws2_32: Add support for WSARecvMsg and IP_PKTINFO. 2010-12-07 17:04:11 +01:00
Juan Lang 7f5583aee9 ws2_32: Set length on successful return from WSAStringToAddress. 2010-12-03 11:04:16 +01:00
André Hentschel 8b913427c0 ws2_32: Map AI_ADDRCONFIG. 2010-11-23 13:16:53 +01:00
Greg Geldorp b53edc6dcc ws2_32/tests: NT4 and Win2000 print IPv6 addresses a little bit differently. 2010-11-16 11:59:17 +01:00
Francois Gouget 76039b3728 ws2_32: Add a trailing '\n' to a FIXME() call. 2010-11-02 13:16:47 +01:00
Louis Lenders cb65dbf3d8 ws2_32: Return SOCKET_ERROR in stubbed WSALookupServiceNext, to prevent apps from looping forever. 2010-10-28 11:39:24 +02:00
Dan Kegel 6733c40d78 ws2_32: Null select() should fail with WSAEINVAL. 2010-10-18 19:47:49 +02:00
Alexandre Julliard 730f01801f tests: Make some variables static. 2010-10-01 13:41:42 +02:00
Juan Lang 9addae9d66 ws2_32: Implement WSAIoctl for SIO_ROUTING_INTERFACE_QUERY. 2010-09-29 10:05:55 +02:00
Francois Gouget d33ff209b3 ws2_32: Make WS2_AcceptEx() and WS2_GetAcceptExSockaddrs() static. 2010-09-29 10:05:27 +02:00
Juan Lang d06b1d599d ws2_32/tests: Test SIO_ROUTING_INTERFACE_QUERY. 2010-09-28 17:33:20 +02:00
Mike Kaplinskiy f138a5724d ws2_32: Implement SO_UPDATE_ACCEPT_CONTEXT. 2010-09-28 17:33:19 +02:00
Juan Lang 1e09999350 ws2_32: Unpack ioctl codes in WSAIoctl trace. 2010-09-27 12:10:52 +02:00
Mike Kaplinskiy cf72f406ec ws2_32: Implement AcceptEx and GetAcceptExSockaddrs. 2010-09-22 20:04:32 +02:00
Alexandre Julliard 4cbfe4e1ef ws2_32: Fail when select is called with an invalid fd.
Based on a patch by Vincent Povirk.
2010-09-20 14:56:55 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Vincent Povirk e1705151a9 ws2_32: Add a test for selecting invalid sockets. 2010-09-15 17:50:32 -05:00
Austin English 4ada99aa83 ws2_32: Add a stub for WSANSPIoctl. 2010-09-09 19:28:32 +02:00
Alexandre Julliard 9f2c51800d ws2_32/tests: Fix some buffer overflows in traces. 2010-09-03 21:07:54 +02:00
Francois Gouget d8cb2a0c38 ws2_32/tests: Add a trailing '\n' to an ok() call. 2010-08-24 15:22:36 +02:00
Francois Gouget 21541da0bb ws2_32: Add a trailing '\n' to a TRACE() call. 2010-08-24 15:22:35 +02:00
Wolfgang Schwotzer 6d5aaaa5e0 ws2_32: Initialize variable lsap_sel. 2010-08-20 13:21:28 +02:00
Wolfgang Schwotzer d640d3fa5c ws2_32/tests: Only log threads which not terminated by themselves. 2010-08-17 12:57:01 +02:00
Mike Kaplinskiy 50ef3a2018 ws2_32: Fix a bad pointer crash. 2010-08-16 15:54:23 +02:00
Mike Kaplinskiy d596fa1859 ws2_32: Implement SO_UPDATE_CONNECT_CONTEXT. 2010-08-16 13:45:43 +02:00
Dmitry Timoshkov e0bbcea6fb ws2_32: Rearrange the code to avoid a needless release_sock_fd(). 2010-08-04 12:33:27 +02:00
Mike Kaplinskiy 4d6982e684 ws2_32: Implement ConnectEx. 2010-08-03 12:02:47 +02:00
Mike Kaplinskiy 15cc301728 ws2_32: Create a wrapper for connect. 2010-08-03 12:01:22 +02:00
Mike Kaplinskiy fae0b6fa63 ws2_32: Don't set FD_READ/FD_WRITE before the connection is complete. 2010-08-03 12:00:48 +02:00
Mike Kaplinskiy 5288a22585 ws2_32/tests: Test ConnectEx. 2010-08-03 11:59:15 +02:00
Mike Kaplinskiy a6203f8b53 server: Fix some comments.
Apparently windows reports only currently valid events for WSAEnumNetworkEvents.
2010-07-28 16:28:27 +02:00
Mike Kaplinskiy 0b251c08f2 server: Consume events triggered. 2010-07-28 16:28:26 +02:00
André Hentschel 6c144d06fe ws2_32: Fix test message. 2010-07-22 10:11:31 +02:00
Alexandre Julliard b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Austin English cdf091f2c9 ws2_32: Remove unused variable. 2010-07-21 13:23:59 +02:00
Howell Tam 8b7ec05bd2 ws2_32: Wrapped WSASendTo/WSARecvFrom with a different function name. 2010-07-19 15:13:24 +02:00
Alexandre Goujon 73b2f5708f ws2_32: Add host unreachable case. 2010-07-05 12:59:47 +02:00
Francois Gouget 1a1f1aa588 ws2_32/tests: Fix a typo in a variable name. 2010-06-22 20:04:09 +02:00
Alexandre Julliard 76efc82860 ws2_32/tests: Reorder includes so that winsock.h is included before system headers. 2010-06-15 22:58:53 +02:00
Andrew Nguyen f96d192947 ws2_32: Update DLL version information to correspond to XP.
The Star Trek: Armada II demo tries to install a Windows 95 winsock 
redist if the detected ws2_32.dll version is too old.
2010-05-27 14:46:43 +02:00
Mike Kaplinskiy 42debac149 server: Move socket async activation to sock_poll_event. 2010-05-17 14:41:33 +02:00
Mike Kaplinskiy ebf20d6645 ws2_32/tests: fix test failures on wine and win98. 2010-05-17 12:42:31 +02:00
Alexandre Julliard 861989596f ws2_32/tests: Fix non-portable syntax. 2010-05-14 11:42:43 +02:00
Mike Kaplinskiy 688b94b43d ws2_32/tests: Add some socket event tests. 2010-05-13 11:51:28 +02:00
Kai Blin 8a00bdddc0 ws2_32: Stub out WS_SIO_UDP_CONNRESET WSioctl. 2010-05-11 16:28:33 +02:00
Mike Kaplinskiy df710826e1 ws2_32: Improve SIO_GET_EXTENSION_FUNCTION_POINTER stub. 2010-05-10 13:43:43 +02:00
Stefan Leichter 5ccbcfdec7 ws2_32: In setsockopt implement IPV6_ADD_MEMBERSHIP and IPV6_DROP_MEMBERSHIP only when supported. 2010-04-05 11:37:11 +02:00
Stefan Leichter 89aaf74f1f ws2_32: Partly implement level IPPROTO_IPV6 of getsockopt. 2010-04-02 10:38:31 +02:00
Stefan Leichter d0eaf2ce0e ws2_32: Partly implement level IPPROTO_IPV6 of setsockopt. 2010-03-31 16:12:07 +02:00
Mikhail Maroukhine cad91b8d50 ws2_32: Fix compiler warnings with flag -Wcast-qual. 2010-03-29 12:18:22 +02:00
Mike Kaplinskiy 03651926b7 ws2_32/tests: Fix win9x test failure. 2010-03-24 19:01:38 +01:00
Mike Kaplinskiy 5d72f63bd7 ws2_32/tests: Test a WSARecv error condition. 2010-03-23 12:36:02 +01:00
Mike Kaplinskiy 798c9e5161 ws2_32: Use ntstatus in overlapped functions. 2010-03-23 12:35:56 +01:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Jason Edmeades 6cea48b928 ws2_32: Support indefinite receive timeouts. 2010-02-12 11:54:30 +01:00
Paul Vriens 45fc31e803 ws2_32/tests: Fix test failures on Win9x/WinMe. 2010-02-08 17:14:44 +01:00
Marcus Meissner d281252196 ws2_32: Check namelen before dereferencing it in TRACE (Coverity). 2010-02-04 17:27:27 +01:00
Andrew Nguyen 1bcc3aa35c ws2_32: Fix parameter validation order in getpeername. 2010-02-03 11:07:21 +01:00
Erich Hoover 896af79093 ws2_32: Fix allocating a hostent with no h_aliases list. 2009-12-15 16:09:12 +01:00
Erich Hoover 355818ae1e ws2_32: Return the full list of local IP addresses when gethostbyname() is called on the local hostname. 2009-12-10 12:51:52 +01:00
Erich Hoover f9f9566c74 ws2_32: Separate out hostent creation from duplication. 2009-12-10 12:51:47 +01:00
Roderick Colenbrander 6a8aae0bec ws2_32: Use winediag for socket failures. 2009-12-08 17:43:45 +01:00
Rob Shearman 0d10ddd4d5 ws2_32: Initialise buffer eventually passed into send to zero in test_write_events. 2009-12-01 15:10:37 +01:00
André Hentschel 511c76dfdf ws2_32/tests: Test for initial state of SIOCATMARK. 2009-11-10 13:13:04 +01:00
André Hentschel 905dc0c8fc ws2_32: Fix a comment. 2009-11-09 20:43:49 +01:00
Marcus Meissner 94efd487f0 ws2_32: Use correct buffer for 17 byte write. 2009-11-09 19:38:40 +01:00
Hans Leidekker ebe6dabe27 ws2_32: Add a test for GetAddrInfoW. 2009-10-29 13:51:05 +01:00
Hans Leidekker 140eede67d ws2_32: Avoid accessing uninitialized memory in GetAddrInfoW.
Found by valgrind.
2009-10-29 13:50:58 +01:00
Dmitriy Anisimkov f951deec6f ws2_32: Ignore EINTR poll result code in WS_select. 2009-10-21 17:02:43 +02:00
Juan Lang d1963ee2f1 ws2_32: Don't overwrite address length before checking it. 2009-10-19 14:41:49 +02:00
Alexandre Julliard 190d7e74ec ws2_32: Set Information to 0 upon completion of an async shutdown. 2009-10-19 11:44:20 +02:00
Francois Gouget 78d413d424 ws2_32: Make wsaErrno() and wsaHerrno() static. 2009-10-07 15:17:24 +02:00
Michael Stefaniuc 6edb5dd0c6 ws2_32/tests: Use LONG instead of long. 2009-10-06 11:57:58 +02:00
Mike Kaplinskiy 6d20b84ddd ws2_32/tests: fix failure on win98/me. 2009-10-05 13:46:01 +02:00
Alexandre Julliard 7dc9ea8950 ws2_32: Make winsock.dll into a stand-alone 16-bit module. 2009-09-29 20:05:26 +02:00
Alexandre Julliard f507e3c416 ws2_32: Remove remaining 16-bit code from async.c and simplify the code. 2009-09-29 20:03:36 +02:00
Alexandre Julliard 252925fe53 ws2_32: Move the 16-bit async functions to socket16.c. 2009-09-29 20:00:53 +02:00
Alexandre Julliard 4ad0c4d86c ws2_32: Move the getXXXbyYYY critical section to socket.c. 2009-09-29 19:36:16 +02:00
Alexandre Julliard 3b6b1c87fe ws2_32: Use the standard winsock functions to implement the async versions. 2009-09-29 19:36:15 +02:00
Alexandre Julliard 8dcb6f3f3c ws2_32: Define a specific structure for each query type. 2009-09-29 19:35:59 +02:00
Alexandre Julliard 6905a6c2ad ws2_32: Define a common header struct for async queries, and switch to 32-bit types. 2009-09-29 18:29:32 +02:00
Alexandre Julliard 9c2abfc503 ws2_32: Split the async function callback by type of query. 2009-09-29 18:29:27 +02:00
Mike Kaplinskiy 45bd91b28b ws2_32/tests: Test WSAAccept with CF_DEFER. 2009-09-25 13:42:41 +02:00
Mike Kaplinskiy 3905c7a030 ws2_32: Try accepting a connection before blocking. 2009-09-25 13:42:36 +02:00
Mike Kaplinskiy 13eef3d691 ws2_32: Remember to convert ports to network byte order. 2009-09-15 16:41:25 -05:00
Ge van Geldorp 1c65c6d6f9 ws2_32/tests: Add acceptable error codes for Win7. 2009-09-08 12:11:56 +02:00
Juan Lang 8e42dbf7a5 ws2_32: Add a fixme for IPPROTO_IPV6. 2009-09-02 10:24:08 +02:00
Alexandre Julliard 19c572f3dc ws2_32/tests: Fix test failures on Vista. 2009-08-27 20:47:54 +02:00
Mike Kaplinskiy d2065e3dc9 ws2_32/tests: Fix failure on NT4. 2009-08-25 11:43:26 +02:00
Detlef Riekenberg 2b345484bc ws2_32/tests: Add tests for setsockopt with invalid levels. 2009-08-25 11:31:47 +02:00
Detlef Riekenberg a563d670a0 ws2_32/tests: Add tests for getsockopt with invalid levels. 2009-08-25 11:31:38 +02:00
Detlef Riekenberg 3d326eb5a8 ws2_32: Set WSAEINVAL on invalid levels in set+getsockopt. 2009-08-25 11:31:24 +02:00
Detlef Riekenberg 3e87a05476 ws2_32: Use only the lower 16 bit as level when calling [g|s]etsockopt from 16 bit. 2009-08-25 11:31:12 +02:00
Mike Kaplinskiy 9b906c6766 ws2_32/tests: Test connecting a pending accept socket. 2009-08-20 15:26:19 +02:00
Juan Lang cdffa87666 ws2_32: Implement getsockopt(SOL_IRLMP, IRLMP_ENUMDEVICES). 2009-08-13 17:04:00 +02:00
Juan Lang c3f2eceaf2 ws2_32: Add debug support for IrDA addresses. 2009-08-13 17:03:53 +02:00
Juan Lang f166a9dfbd ws2_32: Implement ws_sockaddr_u2ws for AF_IRDA. 2009-08-13 17:03:45 +02:00
Juan Lang 2856794e66 ws2_32: Implement ws_sockaddr_ws2u for AF_IRDA. 2009-08-13 17:03:38 +02:00
Juan Lang 643466208b ws2_32: Allow binding to IrDA sockets if IrDA support is compiled in. 2009-08-13 17:03:14 +02:00
Juan Lang b1a80b8837 ws2_32: Add AF_IRDA to the address family map. 2009-08-13 17:00:58 +02:00
Jeff Latimer 694b6955a3 ws2_32/tests: Tests for invalid conditions in InetNtop. 2009-08-10 17:09:26 +02:00
Mike Kaplinskiy 5b1992b466 ws2_32/tests: Fix the last failures on NT4/2000. 2009-08-10 13:10:42 +02:00
Mike Kaplinskiy da1e7a7208 ws2_32/tests: Test closing (and CancelIo'ing) accepting socket with pending AcceptEx call. 2009-08-07 14:57:18 +02:00
Jeff Latimer f40cbb3d77 ws2_32: Add the scope_id to the IPv6 address string if present. 2009-08-05 15:30:16 +02:00
Jeff Latimer 4028a0e9f0 ws2_32: Add the port to the IPv6 address string if present. 2009-08-05 15:30:16 +02:00
Juan Lang 90c52c0180 ws2_32: Add debug support for IPv6 addresses. 2009-08-04 12:49:56 +02:00
Rein Klazes d8f962e69c ws2_32: Do not make the unix file descriptor blocking. Too many places in the socket code assume it is not. 2009-07-24 11:51:35 +02:00
Mike Kaplinskiy 7b683a9008 ws2_32/tests: Fix the last failures on NT4. 2009-07-22 11:08:49 +02:00
Mike Kaplinskiy 83d2108126 ws2_32/tests: Fix test failures on NT4/x86_64. 2009-07-20 13:35:43 +02:00
Mike Kaplinskiy 4acc8729c4 ws2_32/tests: Test closing listener during pending AcceptEx. 2009-07-20 13:35:37 +02:00
Mike Kaplinskiy 98bc97f770 ws2_32/tests: Test AcceptEx during pending AcceptEx call. 2009-07-20 13:35:34 +02:00
Marcus Meissner f8600c706d ws2_32: Fixed buffer size to MultiByteToWideChar. 2009-07-20 12:20:22 +02:00
Jeff Latimer 4a8e36548d ws2_32: IPv6 functionality for WSAAddressToStringW. 2009-07-17 13:33:41 +02:00
Jeff Latimer c620ec8f72 ws2_32/tests: IPv6 tests for WSAAddressToStringW. 2009-07-17 13:32:56 +02:00
Juan Lang 778a1d85c4 ws2_32: Make sure sockaddr is big enough when formatting an IPv6 address. 2009-07-17 11:14:48 +02:00
Juan Lang a9a1cd269c ws2_32: Remove an unnecessary cast. 2009-07-17 11:14:43 +02:00
Mike Kaplinskiy 1dd1ea2e17 ws2/tests: Test AcceptEx with a deferred socket. 2009-07-14 16:28:59 +02:00
Damjan Jovanovic 26b0fad163 ws2_32: Test AcceptEx early disconnects and invalid parameters. 2009-07-10 12:12:04 +02:00
Alexandre Julliard 48656f5596 ws2_32: Check buffers before recvmsg() to trigger write watches. 2009-07-09 15:21:30 +02:00
Paul Vriens b7e1473311 ws2_32/tests: Fix a test failure on NT4. 2009-07-08 20:13:16 +02:00
Damjan Jovanovic 0066319b2d ws2_32: Test AcceptEx short reads. 2009-07-07 11:01:06 +02:00
Damjan Jovanovic 71f7da2d3e ws2_32: Add some AcceptEx tests. 2009-07-06 14:35:26 +02:00
Austin English 3cf5eb6d96 ws2_32/tests: Add initial tests for WSAStartup. 2009-05-04 12:52:40 +02:00
Alexandre Julliard 445567ea95 ws2_32: Use SIZE_T instead of size_t for inet_ntop argument. 2009-04-29 15:52:29 +02:00
Jeff Latimer 2fa64f52e7 ws2_32: IPv6 functionality for WSAAddressToStringA. 2009-04-29 15:50:22 +02:00
Jeff Latimer 7d78bf4b1c ws2_32/tests: IPv6 tests for WSAAddressToStringA. 2009-04-29 15:49:41 +02:00
Paul Vriens ffd855d214 ws2_32/tests: Run tests again on several platforms due to missing functions. 2009-04-28 11:58:24 +02:00
Jeff Latimer 4d4819d8c4 ws2_32: Make inet_ntop conform to msdn definition. 2009-04-27 14:29:28 +02:00
Jeff Latimer 0cdd0d80ee ws2_32/tests: Add tests for Inet_Ntop and inet_ntoa. 2009-04-27 14:29:08 +02:00
Hans Leidekker fea6d0a764 ws2_32: Implement GetAddrInfoW and FreeAddrInfoW. 2009-04-27 13:22:54 +02:00
Alexandre Julliard d341cca616 ws2_32/tests: Avoid sizeof in traces. 2009-04-22 16:56:37 +02:00
Jeff Latimer eab59e84ac ws2_32: WSAAddressToStringW should return length of unicode address string should and include the trailing null. 2009-04-20 17:40:18 +02:00
Jeff Latimer bf40710516 ws2_32: WSAAddressToStringA should return length of ANSI address string and should include the trailing null. 2009-04-20 17:39:56 +02:00
Michael Stefaniuc 0847e7d826 ws2_32: Use better types for some variables. 2009-04-20 14:12:32 +02:00
Alexandre Julliard 65e71259df ws2_32/tests: Don't use socklen_t. 2009-03-31 12:13:15 +02:00
Alexandre Julliard a8a2ca72bd ws2_32/tests: Fix a test failure on WinME. 2009-01-25 17:54:49 +01:00
Alexandre Julliard a46441bd02 ws2_32: Fix an error return value in bind(). 2009-01-08 17:29:31 +01:00
Alexandre Julliard bc9df953fc ws2_32/tests: Avoid printing pointer differences in traces. 2009-01-08 13:02:54 +01:00
Alexandre Julliard 6db201080f server: Make the various async I/O parameters client_ptr_t instead of void pointers. 2008-12-30 21:09:41 +01:00
Alexandre Julliard f507ccbf52 server: Specify the user APC to call only once the system APC has executed. 2008-12-30 20:51:55 +01:00
Francois Gouget da1a352972 configure: Fix the linux/ipx.h check. 2008-12-29 11:35:58 +01:00
Alexandre Julliard a7b3efde0e server: Store the async handle inside the async_data_t structure. 2008-12-26 12:33:21 +01:00
Alexandre Julliard bc85fb4cd3 ws2_32: Added implementation for inet_ntop. 2008-12-22 19:40:08 +01:00
Alexandre Julliard f6fa72d770 server: Make async I/O transfer sizes always 32-bit. 2008-12-15 13:30:25 +01:00
Andrew Talbot 8ee1634f41 ws2_32: Sign-compare warnings fix. 2008-12-11 14:32:06 +01:00
Hans Leidekker c58541e20a ws2_32: Implement WSAIoctl(SIO_KEEPALIVE_VALS).
Based on a patch by Philippe Rétornaz.
2008-12-09 12:46:52 +01:00
Alexandre Julliard 7fdadbb377 server: Add functions for conversions between server user handles and pointer-style handles. 2008-12-08 16:58:20 +01:00
Alexandre Julliard d1b3d484f7 server: Add functions for conversions between server object handles and pointer-style handles. 2008-12-08 16:05:17 +01:00
Michael Stefaniuc e948b2bf7e ws2_32/tests: Remove some superfluous casts. 2008-12-04 12:08:30 +01:00
Francois Gouget 792e672822 ws2_32: Fix the checks for AQ_WIN16. 2008-12-01 12:57:29 +01:00
Jeff Zaroyko 75e511f3a7 ws2_32: Test WSAAccept optional callback parameter before trying to use it. 2008-11-06 11:10:18 +01:00
Michael Stefaniuc 4f199a10ad Remove the remaining casts of NULL. 2008-11-03 13:42:09 +01:00
Aric Stewart 6b4d22ca2c ws2_32: Only set the overlapped hEvent if it exists. 2008-10-29 13:43:44 +01:00
Alexandre Julliard fe7c5d86e7 ws2_32: Allow arbitrary-sized iovecs again in WSASendTo and WSARecvFrom. 2008-10-09 12:57:33 +02:00
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
Juan Lang 8c44e25693 ws2_32: Delay import iphlpapi. 2008-08-05 14:09:36 +02:00
Daniel Santos b54b282a4f ws2_32: WSASendTo() should clear last error on success. 2008-07-18 12:30:31 +02:00
Andrew Talbot a42a61eee1 ws2_32: Remove unneeded address-of operators from array names. 2008-07-14 11:50:48 +02:00
Kai Blin 1d77d2a826 ws2_32: Prevent segfault in trace for NULL AddressString. 2008-07-04 19:35:41 +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
Albert Lee b4057a6f39 ws2_32: WS_getaddrinfo TRACE message can crash Wine. 2008-06-18 15:21:48 +02:00
Kai Blin 36d6310599 ws2_32: Change back magic 127.12.34.56 to loopback on connect(). 2008-05-28 11:31:22 +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
Andrew Talbot 0c1407008d ws2_32: Remove unused function. 2008-05-22 11:28:59 +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
Francois Gouget 42a61d7ed7 Assorted spelling fixes. 2008-05-06 16:10:20 +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
Alexandre Julliard 6121af50d6 ws2_32: Don't name a parameter errno. 2008-04-29 20:17:41 +02:00
Kai Blin c0a3ac5006 ws2_32: Handle gethostbyname call failure, add tests. 2008-04-28 14:33:03 +02:00
Kai Blin 1bcbe8651a ws2_32: Work around the host name resolving to 127.x.x.x when using that for binding. 2008-04-24 22:08:54 +02:00
Andrew Talbot 15db05929a ws2_32: Make function declarations match definitions. 2008-04-01 11:26:24 +02:00
Andrew Talbot a839455bb0 ws2_32: Assign to structs instead of using memcpy. 2008-03-24 20:41:50 +01:00
Francois Gouget f5ea0fd2e4 ws2_32: s/#if/#ifdef/ so it still works if HAVE_XXX is not defined. 2008-03-06 17:38:59 +01:00
Rob Shearman 48000893f9 makefiles: Simplify the use of the IMPORTLIB variable in the DLL makefiles.
Only specify the root to keep platform-specifics out of the individual 
DLL makefiles.
2008-03-04 20:55:01 +01:00
James Hawkins 7b56757cf6 janitorial: Remove links to any microsoft site. 2008-03-01 12:17:13 +01:00
Andrew Talbot e27ede4070 ws2_32: Remove unneeded casts. 2008-02-08 11:02:45 +01:00
Rob Shearman dfce00677d ws2_32: Add a FIXME for WS_SIO_GET_EXTENSION_FUNCTION_POINTER in WSAIoctl. 2008-02-05 12:19:37 +01:00
Francois Gouget 44b52b128c Assorted spelling fixes. 2008-01-16 12:48:29 +01: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
Alexander Dorofeyev d5a09fdda7 ws2_32: Fix timeout check. 2007-12-26 14:03:41 +01:00
Johannes Stezenbach ca4d35fe48 ws2_32: Set *res = NULL for error return from WS_getaddrinfo(). 2007-12-23 14:17:12 +01:00
Kirill K. Smirnov 01380b0554 ws2_32: Fix flags conversion in getnameinfo() function. 2007-12-18 14:23:23 +01:00
Andrey Turkin 7a9210fa85 server: Pass Information field from async I/O APCs. 2007-11-15 14:24:50 +01:00
Andrey Turkin 27cb7c7274 ws2_32: Make certain winsock functions generate i/o completion messages. 2007-11-15 14:23:23 +01:00
Andrey Turkin c702a91a3c server: Allow async i/o operations to send completion messages. 2007-11-15 14:20:29 +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
Kai Blin 58b030c270 ws2_32: Map SO_REUSEADDR.
BSD socket SO_REUSEADDR is not a complete match, but features like
"allow binding to a port immediately after closing it" seem to be compatible.
2007-11-05 13:24:37 +01:00
Aric Stewart 6c824e8b89 ws2_32: Return proper WSAENOBUFS error when enuming protocols. 2007-10-19 12:15:43 +02:00
Juan Lang 17248108d4 ws2_32: Fix broadcast address calculation. 2007-10-15 12:10:32 +02:00
Damjan Jovanovic 5591c969a6 ws2_32: Silently ignore WS_IP_DONTFRAGMENT. 2007-10-04 12:03:41 +02: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
Philip Nilsson 1399a6eaf8 ws2_32: Set IPV6_V6ONLY when required to be compatible with Windows. 2007-09-25 13:51:40 +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
Aric Stewart d35857dfbf ws2_32: Initialize the address to 0 in ws_sockaddr_ws2u. 2007-07-25 13:00:41 +02:00
Damjan Jovanovic 827644ad71 ws2_32: Sending 0 bytes shouldn't cause an infinite loop. 2007-07-24 11:50:08 +02:00
Damjan Jovanovic 15428534d8 ws2_32: Update WSASendTo's iovec properly. 2007-07-16 13:38:19 +02:00
Ben Hodgetts f438e524e7 ws2_32: Don't tell users to run Wine as root when sockets not creatable. 2007-07-03 12:29:13 +02:00
Kai Blin fd133237b0 ws2_32: Handle IPv6 in WSAStringToAddress. 2007-07-02 13:35:41 +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
Alexandre Julliard 0bd2b548da ws2_32: Don't print traces from async I/O callbacks. 2007-06-29 13:40:48 +02:00
Damjan Jovanovic 1cf9436efe ws2_32: getsockname should fail on unbound socket. 2007-06-15 12:40:20 +02:00
Kai Blin f500591f38 ws2_32: Add mapping for STATUS_OBJECT_TYPE_MISMATCH to WSAENOTSOCK. 2007-06-06 12:10:01 +02:00
Alexandre Julliard 597dac7890 ws2_32: Rewrite WSAGetOverlappedResult for the new async I/O behavior. 2007-06-04 23:03:20 +02:00
Alexandre Julliard 7c6bc78b90 ntdll: Get rid of the num_async_io counter in the TEB. 2007-06-04 18:17:16 +02:00
Alexandre Julliard e32252efae ws2_32: Queue a proper user APC also on immediate success in WSARecvFrom/WSASendTo. 2007-06-04 17:44:24 +02:00