Commit Graph

182 Commits

Author SHA1 Message Date
Alexandre Julliard 7e4af0f60b Store the winsock per-thread data in NtCurrentTeb()->WinSockData
instead of using TlsAlloc.
2005-05-14 11:09:21 +00:00
Eric Pouech 0198255ba9 Some fixes on async shutdown. 2005-05-09 19:31:19 +00:00
Robert Lunnon cd40a31073 Added a conditionally compiled definition of INADDR_NONE for platforms
that don't define it.
2005-05-07 12:18:10 +00:00
Francois Gouget 821d4c4645 Fix nativeapi.pm so it knows about AC_HEADER_STAT().
Make the error message about unexpected '#ifdef HAVE_XXX' clearer.
Protect sys/stat.h #includes with the corresponding '#ifdef HAVE_XXX'
check.
2005-05-06 16:22:54 +00:00
Marcus Meissner 8480f39f11 Initialize iosb. 2005-05-05 09:49:43 +00:00
Marcus Meissner c4d25aec20 Fixed stack overwrite by using sizeof(WS_sockaddr_ipx). 2005-04-28 18:27:27 +00:00
Peter Berg Larsen e732fc023d Janitorial: Get rid of strncpy/strncpyW. 2005-03-28 14:17:51 +00:00
Jakob Eriksson 9ed61de9a2 Get rid of HeapAlloc casts. 2005-03-24 21:01:35 +00:00
Dmitry Timoshkov 75b93ff1aa Match OVERLAPPED structure to the SDK definition. 2005-03-17 19:00:08 +00:00
Steven Edwards 5727918424 Added a check for poll.h. 2005-03-04 12:38:36 +00:00
Eric Pouech 4634447d6b - got rid of include/async.h
- fixed some overlapped issues in socket handling
- moved kernel32.CancelIo implementation to ntdll
2005-01-14 19:54:38 +00:00
Hans Leidekker 8be26da723 Stub implementations for WPUCompleteOverlappedRequest,
WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName,
WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W},
WSALookupServiceEnd, WSALookupServiceNext{A,W},
WSAProviderConfigChange,  WSASetService{A,W}, WSCEnableNSProvider,
WSCGetProviderPath, WSCInstallNameSpace,  WSCWriteProviderOrder.
Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall.
Avoid NULL dereferences in WSAStringToAddress{A,W} and
WSAAddressToString{A,W}.
2005-01-10 14:34:15 +00:00
Mike McCormack 4a0f999859 Use CreateEventW in preference to CreateEventA for unnamed events. 2005-01-07 15:40:09 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Robert Shearman c7d80ccf52 Convert per-process hostent, servent and protent buffers into
per-thread buffers.
2004-12-22 18:23:49 +00:00
Francois Gouget 6fb1a20020 Assorted spelling fixes. 2004-12-20 19:27:06 +00:00
Alexandre Julliard 1d38462e52 Fixed a leak in getsockname.
Replaced malloc by HeapAlloc.
2004-12-06 16:52:36 +00:00
Gerald Pfeifer 6d653ab02a Fix format string in WSAAddressToStringA(). 2004-11-06 03:47:01 +00:00
Hans Leidekker 19def5f7af Implement WSAAddressToString{A,W}.
Add tests for WSAAddressToString{A,W} and WSAStringToAddress{A,W}.
Add TRACEs to WSAStringToAddress{A,W}.
2004-11-04 21:05:48 +00:00
Stefan Dösinger 418f82b76f Added WSAAddressToStringA/W stubs. 2004-11-02 19:25:34 +00:00
Vincent Béron 6c644d68cf Fix various function prototypes. 2004-10-19 23:55:15 +00:00
Rein Klazes fd19a1f9e8 - Fix WS_getsockopt for the options SO_LINGER, SO_RCVTIMEO and
SO_SNDTIMEO by adding data conversion from Unix to windows.
- Added a test for this.
2004-10-06 18:52:51 +00:00
Robert Shearman cf78e15c2b - Fix calculation of required buffer size.
- Add support for detecting the IFF_MULTICAST flag.
- Stub for SIO_ADDRESS_LIST_CHANGE.
2004-10-04 20:37:43 +00:00
Rein Klazes 8ed3bbf2d2 - Time out on recv from and send to blocking sockets.
- Fix timeout calculation in WS_setsockopt.
2004-10-04 19:13:26 +00:00
Hans Leidekker 719a789792 Fix signed/unsigned comparison warnings. 2004-09-22 02:46:38 +00:00
Alexandre Julliard 79dcdd0af3 Authors: Roderick Colenbrander <thunderbird2k@gmx.net>, Gerald Pfeifer <gerald@pfeifer.com>
Make WS2_send(), WS_getsockopt(), and WS_setsockopt() IPX support work
on FreeBSD.
2004-09-14 00:48:15 +00:00
Andreas Rosenberg 5e114a8639 Implementation of WSAStringToAddress(A/W), WSAHtonl, WSAHtons. 2004-09-13 23:18:19 +00:00
Roderick Colenbrander dba9461675 - set ipx packet type
- add support for retrieving some ipx info
2004-09-07 20:47:03 +00:00
Hans Leidekker f4b0051e72 Move implementation of EnumProtocols{A,W} from wsock32 to ws2_32.
Forward {mswsock,wsock32}.EnumProtocols{A,W} to ws2_32.WSAEnumProtocols{A,W}.
Improve some traces.
2004-09-06 21:29:29 +00:00
Alexandre Julliard 6a27b48895 Fd type is no longer used, get rid of it. 2004-08-18 00:04:58 +00:00
Ulrich Czekalla 842320998a Handle EINTR when polling. 2004-08-10 23:42:36 +00:00
Hans Leidekker 190db273de Stub for WSCUnInstallNameSpace. 2004-06-02 21:33:17 +00:00
Rein Klazes 36f8f1b791 Stub implementation for WSALookupServiceBeginA/W. 2004-04-05 22:23:05 +00:00
Alexandre Julliard e8a339c1d2 Portability fixes for LSB compatibility. 2004-03-01 21:32:02 +00:00
Patrik Stridvall 774c88a24d More stubs and better headers for mswsock.dll. 2004-02-28 01:49:37 +00:00
Christian Costa 47c13f537c Add stub for WSAStringToAddressA. 2004-01-28 20:07:24 +00:00
Alexey Spiridonov 333ecf3b75 Fixed typo in memset call. 2004-01-27 20:12:42 +00:00
Jeremy Shaw 0d914dfd45 Remove forced WS_SO_REUSEADDR on all binds. 2004-01-13 05:10:59 +00:00
Wim Lewis 1694844d2b Clear struct sockaddr_ipx directly instead of just the sipx_zero
field.
2004-01-02 20:12:00 +00:00
Gerald Pfeifer 15be906293 Fix types in WSAHtonl. 2003-12-12 04:09:46 +00:00
Kirill Smelkov 32f296b6d5 Added stub and prototype for WSAJoinLeaf. 2003-12-11 05:16:48 +00:00
Alexandre Julliard 04ecca54a1 Use wine_server_release_fd() instead of close() everywhere we use
wine_server_handle_to_fd().
A few minor winsock cleanups.
2003-12-02 04:19:56 +00:00
Juan Lang b05861dc5f Removed annoying message about missing entry in /etc/services. 2003-11-30 02:54:25 +00:00
Alexandre Julliard 0d7bdc7abd Moved the 16-bit code out of socket.c and into a separate file. 2003-11-28 23:14:02 +00:00
Dmitry Timoshkov 2581db8f6a Fixed some problems found while compiling and linking Wine under
Cygwin.
2003-10-14 05:27:43 +00:00
Daniel Marmier a613de2a22 Use #ifdef instead of #if for all feature tests.
Check that _MSC_VER is defined before using it.
2003-09-30 00:33:47 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Rein Klazes 3a35544dd9 _ws_gethostbyname() and WSAAsyncGetHostByName() when called with a
null name, should use the name returned by gethostname().
2003-09-02 18:12:20 +00:00
Juan Lang 85abf9cb90 - improve some parameter checking in WSAIoctl
- fix a memory leak I introduced in WSAIoctl
2003-08-30 00:16:19 +00:00
Alexandre Julliard 7df1b9e03a Start using the exported TEB structure from winternl.h where
possible.
2003-08-28 19:57:35 +00:00