Introduced the mswsock dll.
Added stubs for TransmitFile() and AcceptEx().
This commit is contained in:
parent
e547e10be0
commit
2123c1374a
|
@ -1452,6 +1452,7 @@ dlls/msvcrt20/Makefile
|
|||
dlls/msvcrtd/Makefile
|
||||
dlls/msvideo/Makefile
|
||||
dlls/msvideo/msrle32/Makefile
|
||||
dlls/mswsock/Makefile
|
||||
dlls/netapi32/Makefile
|
||||
dlls/netapi32/tests/Makefile
|
||||
dlls/ntdll/Makefile
|
||||
|
|
|
@ -66,6 +66,7 @@ BASEDIRS = \
|
|||
msvcrtd \
|
||||
msvideo \
|
||||
msvideo/msrle32 \
|
||||
mswsock \
|
||||
netapi32 \
|
||||
ntdll \
|
||||
odbc32 \
|
||||
|
@ -254,6 +255,7 @@ SYMLINKS = \
|
|||
msvcrt20.dll$(DLLEXT) \
|
||||
msvcrtd.dll$(DLLEXT) \
|
||||
msvfw32.dll$(DLLEXT) \
|
||||
mswsock.dll$(DLLEXT) \
|
||||
netapi32.dll$(DLLEXT) \
|
||||
ntdll.dll$(DLLEXT) \
|
||||
odbc32.dll$(DLLEXT) \
|
||||
|
@ -504,6 +506,9 @@ msvcrtd.dll$(DLLEXT): msvcrtd/msvcrtd.dll$(DLLEXT)
|
|||
msvfw32.dll$(DLLEXT) msvideo.dll$(DLLEXT): msvideo/msvfw32.dll$(DLLEXT)
|
||||
$(RM) $@ && $(LN_S) msvideo/msvfw32.dll$(DLLEXT) $@
|
||||
|
||||
mswsock.dll$(DLLEXT): mswsock/mswsock.dll$(DLLEXT)
|
||||
$(RM) $@ && $(LN_S) mswsock/mswsock.dll$(DLLEXT) $@
|
||||
|
||||
netapi32.dll$(DLLEXT): netapi32/netapi32.dll$(DLLEXT)
|
||||
$(RM) $@ && $(LN_S) netapi32/netapi32.dll$(DLLEXT) $@
|
||||
|
||||
|
@ -721,6 +726,7 @@ IMPORT_LIBS = \
|
|||
libmsvcrt20 \
|
||||
libmsvcrtd \
|
||||
libmsvfw32 \
|
||||
libmswsock \
|
||||
libnetapi32 \
|
||||
libntdll \
|
||||
libodbc32 \
|
||||
|
@ -1023,6 +1029,11 @@ libmsvfw32.def: msvideo/msvfw32.spec.def
|
|||
libmsvfw32.a: msvideo/msvfw32.spec.def
|
||||
$(DLLTOOL) -k -l $@ -d msvideo/msvfw32.spec.def
|
||||
|
||||
libmswsock.def: mswsock/mswsock.spec.def
|
||||
$(RM) $@ && $(LN_S) mswsock/mswsock.spec.def $@
|
||||
libmswsock.a: mswsock/mswsock.spec.def
|
||||
$(DLLTOOL) -k -l $@ -d mswsock/mswsock.spec.def
|
||||
|
||||
libnetapi32.def: netapi32/netapi32.spec.def
|
||||
$(RM) $@ && $(LN_S) netapi32/netapi32.spec.def $@
|
||||
libnetapi32.a: netapi32/netapi32.spec.def
|
||||
|
@ -1304,6 +1315,7 @@ msvcrt/msvcrt.spec.def: $(WINEBUILD)
|
|||
msvcrt20/msvcrt20.spec.def: $(WINEBUILD)
|
||||
msvcrtd/msvcrtd.spec.def: $(WINEBUILD)
|
||||
msvideo/msvfw32.spec.def: $(WINEBUILD)
|
||||
mswsock/mswsock.spec.def: $(WINEBUILD)
|
||||
netapi32/netapi32.spec.def: $(WINEBUILD)
|
||||
ntdll/ntdll.spec.def: $(WINEBUILD)
|
||||
odbc32/odbc32.spec.def: $(WINEBUILD)
|
||||
|
@ -1420,6 +1432,7 @@ msvcrt/msvcrt.dll$(DLLEXT): msvcrt
|
|||
msvcrt20/msvcrt20.dll$(DLLEXT): msvcrt20
|
||||
msvcrtd/msvcrtd.dll$(DLLEXT): msvcrtd
|
||||
msvideo/msvfw32.dll$(DLLEXT): msvideo
|
||||
mswsock/mswsock.dll$(DLLEXT): mswsock
|
||||
netapi32/netapi32.dll$(DLLEXT): netapi32
|
||||
ntdll/ntdll.dll$(DLLEXT): ntdll
|
||||
odbc32/odbc32.dll$(DLLEXT): odbc32
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
Makefile
|
||||
mswsock.dll.dbg.c
|
||||
mswsock.spec.c
|
||||
mswsock.spec.def
|
||||
version.res
|
|
@ -0,0 +1,18 @@
|
|||
TOPSRCDIR = @top_srcdir@
|
||||
TOPOBJDIR = ../..
|
||||
SRCDIR = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
MODULE = mswsock.dll
|
||||
IMPORTS = ws2_32 iphlpapi kernel32
|
||||
|
||||
LDDLLFLAGS = @LDDLLFLAGS@
|
||||
SYMBOLFILE = $(MODULE).tmp.o
|
||||
|
||||
C_SRCS = \
|
||||
mswsock.c
|
||||
|
||||
RC_SRCS = version.rc
|
||||
|
||||
@MAKE_DLL_RULES@
|
||||
|
||||
### Dependencies:
|
|
@ -0,0 +1,85 @@
|
|||
/*
|
||||
* MSWSOCK specific functions
|
||||
*
|
||||
* Copyright (C) 2003 André Johansen
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
|
||||
#include "config.h"
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "winsock2.h"
|
||||
#include "wine/debug.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(mswsock);
|
||||
|
||||
/******************************************************************************
|
||||
* This structure is used with the TransmitFile() function.
|
||||
*
|
||||
*/
|
||||
|
||||
typedef struct _TRANSMIT_FILE_BUFFERS {
|
||||
PVOID Head;
|
||||
DWORD HeadLength;
|
||||
PVOID Tail;
|
||||
DWORD TailLength;
|
||||
} TRANSMIT_FILE_BUFFERS;
|
||||
typedef TRANSMIT_FILE_BUFFERS* LPTRANSMIT_FILE_BUFFERS;
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* TransmitFile (MSWSOCK.@)
|
||||
*
|
||||
* This function is used to transmit a file over socket.
|
||||
*
|
||||
* TODO
|
||||
* This function is currently implemented as a stub.
|
||||
*/
|
||||
|
||||
void WINAPI TransmitFile(SOCKET s,
|
||||
HANDLE f,
|
||||
DWORD size,
|
||||
DWORD numpersend,
|
||||
LPOVERLAPPED overlapped,
|
||||
LPTRANSMIT_FILE_BUFFERS trans,
|
||||
DWORD flags)
|
||||
{
|
||||
FIXME("not implemented\n");
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* AcceptEx (MSWSOCK.@)
|
||||
*
|
||||
* This function is used to accept a new connection, get the local and remote
|
||||
* address, and receive the initial block of data sent by the client.
|
||||
*
|
||||
* TODO
|
||||
* This function is currently implemented as a stub.
|
||||
*/
|
||||
|
||||
void WINAPI AcceptEx(SOCKET listener,
|
||||
SOCKET acceptor,
|
||||
PVOID oput,
|
||||
DWORD recvlen,
|
||||
DWORD locaddrlen,
|
||||
DWORD remaddrlen,
|
||||
LPDWORD bytesrecv,
|
||||
LPOVERLAPPED overlapped)
|
||||
{
|
||||
FIXME("not implemented\n");
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
@ stdcall AcceptEx(long long ptr long long long ptr ptr)
|
||||
@ stdcall TransmitFile(long long long long ptr ptr long)
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Copyright 2003 Francois Gouget (for CodeWeavers)
|
||||
* Copyright 2003 André Johansen
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#define WINE_FILEVERSION 4,0,0,0
|
||||
#define WINE_FILEVERSION_STR "4.0.0.0"
|
||||
#define WINE_FILEDESCRIPTION_STR "Wine core dll"
|
||||
#define WINE_FILENAME_STR "mswsock.dll"
|
||||
|
||||
#define WINE_PRODUCTVERSION 4,0,0,0
|
||||
#define WINE_PRODUCTVERSION_STR "4.0"
|
||||
|
||||
#include "wine/wine_common_ver.rc"
|
Loading…
Reference in New Issue