Marcus Meissner
5ddf98affe
winsock: Map wildcards for socket type and protocol in getaddrinfo().
2006-01-04 15:07:34 +01:00
Marcus Meissner
624e028787
winsock: AF_UNSPEC mapping.
...
Also map AF_UNSPEC sockaddrs in the sockaddr handlers.
Zero initialize the sockaddr in ws_sockaddr_alloc().
2006-01-03 12:11:07 +01:00
Alexandre Julliard
59797f292e
Pass specific access rights to wine_server_handle_to_fd.
2005-12-12 17:15:26 +01:00
Marcus Meissner
b364f81218
winsock: getaddrinfo - return code mapping.
...
convert_eai_u2w should map from unix to windows, not the other way
round (spotted by Dominic Wise).
2005-12-12 11:55:11 +01:00
Alexandre Julliard
bc30303c56
server: Use attributes instead of inherit flag in socket requests.
2005-12-09 11:58:55 +01:00
Marcus Meissner
851328cd85
winsock: Rewrote mappers to use sizeof() based loops.
...
Added IPPROTO_IP and AF_UNSPEC to the mappers.
2005-12-05 11:59:43 +01:00
Rein Klazes
220edd52d4
Clear the reference counter in WSACleanup, with regression test.
2005-11-29 17:06:35 +01:00
Ge van Geldorp
1a1583a364
Match PSDK STATUS_* definitions.
2005-11-28 17:32:54 +01:00
Francois Gouget
482df927ca
Add LPADDRINFO, missing IP_* defines and missing APIs.
...
Enclose the API definitions in an extern "C" section.
Define function pointer types if INCL_WINSOCK_API_TYPEDEFS is defined.
Better stick to the types defined by the PSDK.
Update win32.api.
2005-11-23 19:43:50 +01:00
Marcus Meissner
200f005d66
EAI_NONAME -> WS_EAI_NODATA, check for EAI_NONAME and EAI_NODATA.
2005-11-22 12:00:43 +00:00
Marcus Meissner
7f5c0de965
Fixed typo in ws_sockaddr_u2ws().
2005-11-21 11:56:42 +00:00
Marcus Meissner
7a6fdea105
Implemented getaddrinfo(), including full mapping of struct addrinfo
...
between UNIX and Windows. Based on a patch by Mike Hearn.
2005-11-17 12:58:35 +00:00
Marcus Meissner
aa730cc9e4
Added mapping between unix and windows sockaddr_in6(_old) and
...
sockaddr_in. Added address family, socket type mappers.
2005-11-16 11:21:57 +00:00
Saulius Krasuckas
f9c82654be
- Stricten cases for NT in a two tests.
...
- WSAAddressToString[AW] don't fail on Win9x for those.
- Modify it to pass new tests.
2005-11-05 10:43:27 +00:00
Eric Pouech
904b6ea8e3
Made accept thread safe(r).
2005-10-24 21:41:34 +00:00
Marcus Meissner
bd7ec9aca5
The last argument to MultiByteToWideChar is wide character count and
...
not the buffer size in bytes. Fixed all places where it was wrong.
2005-09-12 22:07:53 +00:00
Alexandre Julliard
c6b005ac69
Fixed some more traces to use the right printf format and avoid
...
typecasts.
2005-09-12 14:12:46 +00:00
Hans Leidekker
4f36cae4dd
Avoid using the obsolete inet_addr.
2005-08-27 09:20:24 +00:00
Mike McCormack
80fdebbb49
gcc 4.0 warning fixes.
2005-08-25 10:22:12 +00:00
Alexandre Julliard
734821444e
Merged some of the header checks to reduce the size of the generated
...
configure script a bit.
2005-08-03 19:21:04 +00:00
Stefan Huehner
17ed5537e7
Fix some more -Wmissing-declarations warnings.
2005-07-05 11:05:50 +00:00
Eric Pouech
809edabfbe
Const correctness fixes.
2005-06-27 09:53:46 +00:00
Hans Leidekker
26138619b3
Fix some -Wmissing-declarations warnings.
...
"errno" is not a good choice for a parameter name.
2005-06-25 18:34:32 +00:00
Troy Rollo
698a0cb44b
Change WS_bind to accept an sa_family of 0 as "don't care".
2005-06-20 10:30:50 +00:00
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