~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/include/mswsock.h

Version: ~ [ wine-1.5.30 ] ~ [ wine-1.5.29 ] ~ [ wine-1.5.28 ] ~ [ wine-1.5.27 ] ~ [ wine-1.5.26 ] ~ [ wine-1.5.25 ] ~ [ wine-1.5.24 ] ~ [ wine-1.5.23 ] ~ [ wine-1.5.22 ] ~ [ wine-1.5.21 ] ~ [ wine-1.5.20 ] ~ [ wine-1.5.19 ] ~ [ wine-1.5.18 ] ~ [ wine-1.5.17 ] ~ [ wine-1.5.16 ] ~ [ wine-1.5.15 ] ~ [ wine-1.5.14 ] ~ [ wine-1.5.13 ] ~ [ wine-1.5.12 ] ~ [ wine-1.5.11 ] ~ [ wine-1.5.10 ] ~ [ wine-1.5.9 ] ~ [ wine-1.5.8 ] ~ [ wine-1.5.7 ] ~ [ wine-1.4.1 ] ~ [ wine-1.5.6 ] ~ [ wine-1.5.5 ] ~ [ wine-1.5.4 ] ~ [ wine-1.5.3 ] ~ [ wine-1.5.2 ] ~ [ wine-1.5.1 ] ~ [ wine-1.5.0 ] ~ [ wine-1.4 ] ~ [ wine-1.4-rc6 ] ~ [ wine-1.4-rc5 ] ~ [ wine-1.4-rc4 ] ~ [ wine-1.4-rc3 ] ~ [ wine-1.4-rc2 ] ~ [ wine-1.4-rc1 ] ~ [ wine-1.3.37 ] ~ [ wine-1.3.36 ] ~ [ wine-1.3.35 ] ~ [ wine-1.3.34 ] ~ [ wine-1.3.33 ] ~ [ wine-1.3.32 ] ~ [ wine-1.3.31 ] ~ [ wine-1.3.30 ] ~ [ wine-1.3.29 ] ~ [ wine-1.3.28 ] ~ [ wine-1.3.27 ] ~ [ wine-1.3.26 ] ~ [ wine-1.3.25 ] ~ [ wine-1.3.24 ] ~ [ wine-1.3.23 ] ~ [ wine-1.3.22 ] ~ [ wine-1.3.21 ] ~ [ wine-1.3.20 ] ~ [ wine-1.3.19 ] ~ [ wine-1.3.18 ] ~ [ wine-1.2.3 ] ~ [ wine-1.3.17 ] ~ [ wine-1.3.16 ] ~ [ wine-1.3.15 ] ~ [ wine-1.3.14 ] ~ [ wine-1.3.13 ] ~ [ wine-1.3.12 ] ~ [ wine-1.3.11 ] ~ [ wine-1.3.10 ] ~ [ wine-1.3.9 ] ~ [ wine-1.2.2 ] ~ [ wine-1.3.8 ] ~ [ wine-1.3.7 ] ~ [ wine-1.3.6 ] ~ [ wine-1.3.5 ] ~ [ wine-1.2.1 ] ~ [ wine-1.3.4 ] ~ [ wine-1.3.3 ] ~ [ wine-1.3.2 ] ~ [ wine-1.3.1 ] ~ [ wine-1.3.0 ] ~ [ wine-1.2 ] ~ [ wine-1.2-rc7 ] ~ [ wine-1.2-rc6 ] ~ [ wine-1.2-rc5 ] ~ [ wine-1.2-rc4 ] ~ [ wine-1.2-rc3 ] ~ [ wine-1.2-rc2 ] ~ [ wine-1.2-rc1 ] ~ [ wine-1.1.44 ] ~ [ wine-1.1.43 ] ~ [ wine-1.1.42 ] ~ [ wine-1.1.41 ] ~ [ wine-1.1.40 ] ~ [ wine-1.1.39 ] ~ [ wine-1.1.38 ] ~ [ wine-1.1.37 ] ~ [ wine-1.1.36 ] ~ [ wine-1.1.35 ] ~ [ wine-1.1.34 ] ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

  1 /*
  2  * Copyright (C) the Wine project
  3  *
  4  * This library is free software; you can redistribute it and/or
  5  * modify it under the terms of the GNU Lesser General Public
  6  * License as published by the Free Software Foundation; either
  7  * version 2.1 of the License, or (at your option) any later version.
  8  *
  9  * This library is distributed in the hope that it will be useful,
 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 12  * Lesser General Public License for more details.
 13  *
 14  * You should have received a copy of the GNU Lesser General Public
 15  * License along with this library; if not, write to the Free Software
 16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 17  */
 18 #ifndef _MSWSOCK_
 19 #define _MSWSOCK_
 20 
 21 #ifdef __cplusplus
 22 extern "C" {
 23 #endif /* defined(__cplusplus) */
 24 
 25 #ifdef USE_WS_PREFIX
 26 #define WS(x)    WS_##x
 27 #else
 28 #define WS(x)    x
 29 #endif
 30 
 31 #ifndef USE_WS_PREFIX
 32 #define SO_CONNDATA        0x7000
 33 #define SO_CONNOPT         0x7001
 34 #define SO_DISCDATA        0x7002
 35 #define SO_DISCOPT         0x7003
 36 #define SO_CONNDATALEN     0x7004
 37 #define SO_CONNOPTLEN      0x7005
 38 #define SO_DISCDATALEN     0x7006
 39 #define SO_DISCOPTLEN      0x7007
 40 #else
 41 #define WS_SO_CONNDATA     0x7000
 42 #define WS_SO_CONNOPT      0x7001
 43 #define WS_SO_DISCDATA     0x7002
 44 #define WS_SO_DISCOPT      0x7003
 45 #define WS_SO_CONNDATALEN  0x7004
 46 #define WS_SO_CONNOPTLEN   0x7005
 47 #define WS_SO_DISCDATALEN  0x7006
 48 #define WS_SO_DISCOPTLEN   0x7007
 49 #endif
 50 
 51 #ifndef USE_WS_PREFIX
 52 #define SO_OPENTYPE     0x7008
 53 #else
 54 #define WS_SO_OPENTYPE  0x7008
 55 #endif
 56 
 57 #ifndef USE_WS_PREFIX
 58 #define SO_SYNCHRONOUS_ALERT       0x10
 59 #define SO_SYNCHRONOUS_NONALERT    0x20
 60 #else
 61 #define WS_SO_SYNCHRONOUS_ALERT    0x10
 62 #define WS_SO_SYNCHRONOUS_NONALERT 0x20
 63 #endif
 64 
 65 #ifndef USE_WS_PREFIX
 66 #define SO_MAXDG                      0x7009
 67 #define SO_MAXPATHDG                  0x700A
 68 #define SO_UPDATE_ACCEPT_CONTEXT      0x700B
 69 #define SO_CONNECT_TIME               0x700C
 70 #define SO_UPDATE_CONNECT_CONTEXT     0x7010
 71 #else
 72 #define WS_SO_MAXDG                   0x7009
 73 #define WS_SO_MAXPATHDG               0x700A
 74 #define WS_SO_UPDATE_ACCEPT_CONTEXT   0x700B
 75 #define WS_SO_CONNECT_TIME            0x700C
 76 #define WS_SO_UPDATE_CONNECT_CONTEXT  0x7010
 77 #endif
 78 
 79 #ifndef USE_WS_PREFIX
 80 #define TCP_BSDURGENT              0x7000
 81 #else
 82 #define WS_TCP_BSDURGENT              0x7000
 83 #endif
 84 
 85 #ifndef USE_WS_PREFIX
 86 #define SIO_UDP_CONNRESET _WSAIOW(IOC_VENDOR,12)
 87 #define SIO_SET_COMPATIBILITY_MODE _WSAIOW(IOC_VENDOR,300)
 88 #else
 89 #define WS_SIO_UDP_CONNRESET _WSAIOW(WS_IOC_VENDOR,12)
 90 #define WS_SIO_SET_COMPATIBILITY_MODE _WSAIOW(WS_IOC_VENDOR,300)
 91 #endif
 92 
 93 #define DE_REUSE_SOCKET TF_REUSE_SOCKET
 94 
 95 #ifndef USE_WS_PREFIX
 96 #define MSG_TRUNC   0x0100
 97 #define MSG_CTRUNC  0x0200
 98 #define MSG_BCAST   0x0400
 99 #define MSG_MCAST   0x0800
100 #else
101 #define WS_MSG_TRUNC   0x0100
102 #define WS_MSG_CTRUNC  0x0200
103 #define WS_MSG_BCAST   0x0400
104 #define WS_MSG_MCAST   0x0800
105 #endif
106 
107 #define TF_DISCONNECT          0x01
108 #define TF_REUSE_SOCKET        0x02
109 #define TF_WRITE_BEHIND        0x04
110 #define TF_USE_DEFAULT_WORKER  0x00
111 #define TF_USE_SYSTEM_THREAD   0x10
112 #define TF_USE_KERNEL_APC      0x20
113 
114 #define TP_DISCONNECT           TF_DISCONNECT
115 #define TP_REUSE_SOCKET         TF_REUSE_SOCKET
116 #define TP_USE_DEFAULT_WORKER   TF_USE_DEFAULT_WORKER
117 #define TP_USE_SYSTEM_THREAD    TF_USE_SYSTEM_THREAD
118 #define TP_USE_KERNEL_APC       TF_USE_KERNEL_APC
119 
120 #define TP_ELEMENT_MEMORY   1
121 #define TP_ELEMENT_FILE     2
122 #define TP_ELEMENT_EOP      4
123 
124 #define WSAID_ACCEPTEX \
125         {0xb5367df1,0xcbac,0x11cf,{0x95,0xca,0x00,0x80,0x5f,0x48,0xa1,0x92}}
126 #define WSAID_CONNECTEX \
127         {0x25a207b9,0xddf3,0x4660,{0x8e,0xe9,0x76,0xe5,0x8c,0x74,0x06,0x3e}}
128 #define WSAID_DISCONNECTEX \
129         {0x7fda2e11,0x8630,0x436f,{0xa0,0x31,0xf5,0x36,0xa6,0xee,0xc1,0x57}}
130 #define WSAID_GETACCEPTEXSOCKADDRS \
131         {0xb5367df2,0xcbac,0x11cf,{0x95,0xca,0x00,0x80,0x5f,0x48,0xa1,0x92}}
132 #define WSAID_TRANSMITFILE \
133         {0xb5367df0,0xcbac,0x11cf,{0x95,0xca,0x00,0x80,0x5f,0x48,0xa1,0x92}}
134 #define WSAID_TRANSMITPACKETS \
135         {0xd9689da0,0x1f90,0x11d3,{0x99,0x71,0x00,0xc0,0x4f,0x68,0xc8,0x76}}
136 #define WSAID_WSARECVMSG \
137         {0xf689d7c8,0x6f1f,0x436b,{0x8a,0x53,0xe5,0x4f,0xe3,0x51,0xc3,0x22}}
138 #define WSAID_WSASENDMSG \
139         {0xa441e712,0x754f,0x43ca,{0x84,0xa7,0x0d,0xee,0x44,0xcf,0x60,0x6d}}
140 
141 typedef struct _TRANSMIT_FILE_BUFFERS {
142     LPVOID  Head;
143     DWORD   HeadLength;
144     LPVOID  Tail;
145     DWORD   TailLength;
146 } TRANSMIT_FILE_BUFFERS, *PTRANSMIT_FILE_BUFFERS, *LPTRANSMIT_FILE_BUFFERS;
147 
148 typedef struct _TRANSMIT_PACKETS_ELEMENT {
149     ULONG  dwElFlags;
150     ULONG  cLength;
151     union {
152       struct {
153         LARGE_INTEGER  nFileOffset;
154         HANDLE         hFile;
155       } DUMMYSTRUCTNAME;
156       PVOID  pBuffer;
157     } DUMMYUNIONNAME;
158 } TRANSMIT_PACKETS_ELEMENT, *PTRANSMIT_PACKETS_ELEMENT, *LPTRANSMIT_PACKETS_ELEMENT;
159 
160 typedef struct _WSAMSG {
161     LPSOCKADDR  name;
162     INT         namelen;
163     LPWSABUF    lpBuffers;
164     DWORD       dwBufferCount;
165     WSABUF      Control;
166     DWORD       dwFlags;
167 } WSAMSG, *PWSAMSG, *LPWSAMSG;
168 
169 typedef struct _WSACMSGHDR {
170     SIZE_T      cmsg_len;
171     INT         cmsg_level;
172     INT         cmsg_type;
173     /* followed by UCHAR cmsg_data[] */
174 } WSACMSGHDR, *PWSACMSGHDR, *LPWSACMSGHDR;
175 
176 typedef BOOL (WINAPI * LPFN_ACCEPTEX)(SOCKET, SOCKET, PVOID, DWORD, DWORD, DWORD, LPDWORD, LPOVERLAPPED);
177 typedef BOOL (WINAPI * LPFN_CONNECTEX)(SOCKET, const struct WS(sockaddr) *, int, PVOID, DWORD, LPDWORD, LPOVERLAPPED);
178 typedef BOOL (WINAPI * LPFN_DISCONNECTEX)(SOCKET, LPOVERLAPPED, DWORD, DWORD);
179 typedef VOID (WINAPI * LPFN_GETACCEPTEXSOCKADDRS)(PVOID, DWORD, DWORD, DWORD, struct WS(sockaddr) **, LPINT, struct WS(sockaddr) **, LPINT);
180 typedef BOOL (WINAPI * LPFN_TRANSMITFILE)(SOCKET, HANDLE, DWORD, DWORD, LPOVERLAPPED, LPTRANSMIT_FILE_BUFFERS, DWORD);
181 typedef BOOL (WINAPI * LPFN_TRANSMITPACKETS)(SOCKET, LPTRANSMIT_PACKETS_ELEMENT, DWORD, DWORD, LPOVERLAPPED, DWORD);
182 typedef INT  (WINAPI * LPFN_WSARECVMSG)(SOCKET, LPWSAMSG, LPDWORD, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
183 typedef INT  (WINAPI * LPFN_WSASENDMSG)(SOCKET, LPWSAMSG, DWORD, LPDWORD, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
184 
185 BOOL WINAPI AcceptEx(SOCKET, SOCKET, PVOID, DWORD, DWORD, DWORD, LPDWORD, LPOVERLAPPED);
186 VOID WINAPI GetAcceptExSockaddrs(PVOID, DWORD, DWORD, DWORD, struct WS(sockaddr) **, LPINT, struct WS(sockaddr) **, LPINT);
187 BOOL WINAPI TransmitFile(SOCKET, HANDLE, DWORD, DWORD, LPOVERLAPPED, LPTRANSMIT_FILE_BUFFERS, DWORD);
188 INT  WINAPI WSARecvEx(SOCKET, char *, INT, INT *);
189 
190 #ifdef __cplusplus
191 }
192 #endif
193 
194 #undef WS
195 
196 #endif /* _MSWSOCK_ */
197 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.