_read(): In _O_TEXT mode make Readfile calls in chunks as big as
[wine] / dlls / mswsock / mswsock.c
1 /*
2  * MSWSOCK specific functions
3  *
4  * Copyright (C) 2003 AndrĂ© Johansen
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21
22 #include "config.h"
23 #include <stdarg.h>
24
25 #include "windef.h"
26 #include "winbase.h"
27 #include "winsock2.h"
28 #include "wine/debug.h"
29
30 WINE_DEFAULT_DEBUG_CHANNEL(mswsock);
31
32 /******************************************************************************
33  * This structure is used with the TransmitFile() function.
34  *
35  */
36
37 typedef struct _TRANSMIT_FILE_BUFFERS {
38   PVOID Head;
39   DWORD HeadLength;
40   PVOID Tail;
41   DWORD TailLength;
42 } TRANSMIT_FILE_BUFFERS;
43 typedef TRANSMIT_FILE_BUFFERS* LPTRANSMIT_FILE_BUFFERS;
44
45
46 /******************************************************************************
47  * TransmitFile (MSWSOCK.@)
48  *
49  * This function is used to transmit a file over socket.
50  *
51  * TODO
52  *  This function is currently implemented as a stub.
53  */
54
55 void WINAPI TransmitFile(SOCKET                  s,
56                          HANDLE                  f,
57                          DWORD                   size,
58                          DWORD                   numpersend,
59                          LPOVERLAPPED            overlapped,
60                          LPTRANSMIT_FILE_BUFFERS trans,
61                          DWORD                   flags)
62 {
63   FIXME("not implemented\n");
64 }
65
66
67 /******************************************************************************
68  * AcceptEx (MSWSOCK.@)
69  *
70  * This function is used to accept a new connection, get the local and remote
71  * address, and receive the initial block of data sent by the client.
72  *
73  * TODO
74  *  This function is currently implemented as a stub.
75  */
76
77 void WINAPI AcceptEx(SOCKET       listener,
78                      SOCKET       acceptor,
79                      PVOID        oput,
80                      DWORD        recvlen,
81                      DWORD        locaddrlen,
82                      DWORD        remaddrlen,
83                      LPDWORD      bytesrecv,
84                      LPOVERLAPPED overlapped)
85 {
86   FIXME("not implemented\n");
87 }