Commit Graph

56 Commits

Author SHA1 Message Date
Zebediah Figura a7577014fa server: Use an enum to store socket connection state.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-11 10:53:22 +02:00
Zebediah Figura 5ee78d3460 server: Make FD_WINE_NONBLOCKING into a separate field.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-11 10:52:51 +02:00
Zebediah Figura 9603fba894 include: Define _WINSOCKAPI_ in winsock2.h.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-27 18:55:24 +02:00
Zebediah Figura 904c05d3d3 include: Do not include winsock.h in winsock2.h.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-27 18:55:24 +02:00
Hans Leidekker 998e5eaddb ws2_32: Implement GetHostNameW.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49286
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-12 19:32:15 +02:00
Alistair Leslie-Hughes 558437e73b include: Add PF_INET6 define.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-01 14:58:23 +02: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
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
Bruno Jesus d4664c1323 include: Add definitions related to WSAPoll().
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-05 20:22:37 +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
Francois Gouget 7bf46e46c5 ws2_32: Add more WSA_FLAG_XXX values. 2015-03-17 14:17:43 +09:00
Grazvydas Ignotas 7e4fa63621 include: Remove unneeded semicolons and fix a typo. 2014-03-03 17:02:36 +01:00
Bruno Jesus 000328421a include: Add some LUP_* definitions to winsock2.h. 2014-01-06 16:03:49 +01:00
Bruno Jesus 266811b88e include: Move struct WSABUF and WSAMSG to ws2def.h. 2013-09-30 11:29:03 +02:00
Bruno Jesus ce0e3158b2 ws2_32/tests: Add and update WSASocketA() tests. 2013-08-02 11:22:51 +02:00
Matteo Bruni c0d4c66a5a include: Fix some winsock definitions. 2012-03-28 15:09:47 +02:00
Michael Stefaniuc f869a16186 include: Drop some superfluous l modifiers from numeric constants. 2011-11-21 11:01:39 +01: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
Austin English 4ada99aa83 ws2_32: Add a stub for WSANSPIoctl. 2010-09-09 19:28:32 +02:00
Detlef Riekenberg 51aef89bea include: Add a closing bracket. 2010-08-03 11:04:42 +02:00
Alexandre Julliard c611af370b include: Try harder to redefine u_long, and avoid using it in headers as far as possible. 2010-04-03 18:09:18 +02:00
Rob Shearman cb4265074f include: Add declaration of sockaddr_storage to ws2def.h.
Move other declarations that belong in ws2def.h from winsock2.h.
2009-04-07 14:53:47 +02:00
Kai Blin cabb350f2f ws2_32: Add support for FROM_PROTOCOL_INFO to WSASocket(). 2008-05-26 18:00:18 +02:00
Francois Gouget cfbd3384e2 ws2_32: Improve the prototypes Win64 compatibility by replacing long with LONG. 2007-06-04 12:49:22 +02:00
Alexandre Julliard 167b32cc4b winsock: Add WS_ prefix on WSAIoctl constants. 2006-11-27 18:48:58 +01:00
Alexandre Julliard 9e5fadab6d winsock: Add a WS_ prefix to the BSD types. 2006-10-12 13:45:39 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Alexandre Julliard e21a97da85 Fixed some compiler warnings on Darwin. 2005-12-01 12:36:05 +01:00
Alexandre Julliard cecfc3f43e Use the default structure packing like Windows does. 2005-09-19 15:03:22 +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
Hans Leidekker bec06ad777 Fill WSAPROTOCOL_INFO structures instead of PROTOCOL_INFO structures.
Implement WSCEnumProtocols().
Add some tests.
2004-11-01 23:18:47 +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
Andreas Rosenberg 5e114a8639 Implementation of WSAStringToAddress(A/W), WSAHtonl, WSAHtons. 2004-09-13 23:18:19 +00:00
Rein Klazes 36f8f1b791 Stub implementation for WSALookupServiceBeginA/W. 2004-04-05 22:23:05 +00:00
Hans Leidekker f7ed056a43 Added protocol type constants. 2004-03-02 20:53:31 +00:00
Kirill Smelkov 32f296b6d5 Added stub and prototype for WSAJoinLeaf. 2003-12-11 05:16:48 +00:00
Dimitrie O. Paun 53f9c21fb7 Use angle brackets (<>) rather than quotes ("") for the include
directives in our .h files. This should avoid some potentially nasty
surprises for Winelib apps.
2003-08-28 21:43:34 +00:00
Dimitrie O. Paun d93f0814aa Add prototype for __WSAFDIsSet. Fix syntax error. 2003-05-13 00:37:36 +00:00
Mike McCormack 947a74f40d Add stubs and declarations for WSAInstallServiceClassA/W. 2002-11-13 19:42:23 +00:00
Patrik Stridvall 1a4db3e72a Cleaned up the code so it would be easier to parse with the new C
parser.
2002-09-23 20:45:57 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Patrik Stridvall f94462fb75 Move __stdcall/__cdecl to the right place. 2002-01-31 23:22:07 +00:00
Daniel Walker 40491ecc62 Implemented WSAAccept(). 2002-01-14 18:33:44 +00:00
Alexandre Julliard 28e8029107 Fixed typos. 2002-01-12 21:17:51 +00:00
Francois Gouget 272023190e Make winsock.h and winsock2.h independent from the Unix headers.
Make them compatible with both the Unix C headers and the MSVCRT
headers.
Ensure compatibility with the Unix headers via the USE_WS_PREFIX
macro.
Add WINE_NOWINSOCK: prevents winsock.h from being included from
windows.h when defined.
Add ws2tcpip.h, move definitions to the right header.
2001-11-14 21:26:23 +00:00
Andreas Mohr ab968455cd Added WSC*InstallProvider stubs. 2001-10-02 17:46:59 +00:00
Peter Hunnisett 7736876afd Implemented a stub for WSARecvFrom. 2001-07-10 19:09:59 +00:00
Peter Hunnisett de962afa56 Added stub for WSASend. 2001-04-10 21:22:34 +00:00
Francois Gouget 40774c3c91 Change the callback declarations to a safer format. 2001-02-12 01:29:08 +00:00