ReactOS  r76032
mswsock.h File Reference
#include <mswsockdef.h>
Include dependency graph for mswsock.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _TRANSMIT_FILE_BUFFERS
 

Macros

#define _MSWSOCK_
 
#define SO_CONNDATA   0x7000
 
#define SO_CONNOPT   0x7001
 
#define SO_DISCDATA   0x7002
 
#define SO_DISCOPT   0x7003
 
#define SO_CONNDATALEN   0x7004
 
#define SO_CONNOPTLEN   0x7005
 
#define SO_DISCDATALEN   0x7006
 
#define SO_DISCOPTLEN   0x7007
 
#define SO_OPENTYPE   0x7008
 
#define SO_SYNCHRONOUS_ALERT   0x10
 
#define SO_SYNCHRONOUS_NONALERT   0x20
 
#define SO_MAXDG   0x7009
 
#define SO_MAXPATHDG   0x700A
 
#define SO_UPDATE_ACCEPT_CONTEXT   0x700B
 
#define SO_CONNECT_TIME   0x700C
 
#define TCP_BSDURGENT   0x7000
 
#define SIO_UDP_CONNRESET   _WSAIOW(IOC_VENDOR,12)
 
#define SIO_UDP_NETRESET   _WSAIOW(IOC_VENDOR,15)
 
#define TF_DISCONNECT   1
 
#define TF_REUSE_SOCKET   2
 
#define TF_WRITE_BEHIND   4
 
#define TF_USE_DEFAULT_WORKER   0
 
#define TF_USE_SYSTEM_THREAD   16
 
#define TF_USE_KERNEL_APC   32
 
#define TP_DISCONNECT   TF_DISCONNECT
 
#define TP_REUSE_SOCKET   TF_REUSE_SOCKET
 
#define TP_USE_DEFAULT_WORKER   TF_USE_DEFAULT_WORKER
 
#define TP_USE_SYSTEM_THREAD   TF_USE_SYSTEM_THREAD
 
#define TP_USE_KERNEL_APC   TF_USE_KERNEL_APC
 
#define WSAID_TRANSMITFILE   {0xb5367df0,0xcbac,0x11cf,{0x95,0xca,0x00,0x80,0x5f,0x48,0xa1,0x92}}
 
#define WSAID_ACCEPTEX   {0xb5367df1,0xcbac,0x11cf,{0x95,0xca,0x00,0x80,0x5f,0x48,0xa1,0x92}}
 
#define WSAID_GETACCEPTEXSOCKADDRS   {0xb5367df2,0xcbac,0x11cf,{0x95,0xca,0x00,0x80,0x5f,0x48,0xa1,0x92}}
 

Typedefs

typedef struct
_TRANSMIT_FILE_BUFFERS 
TRANSMIT_FILE_BUFFERS
 
typedef struct
_TRANSMIT_FILE_BUFFERS
PTRANSMIT_FILE_BUFFERS
 
typedef struct
_TRANSMIT_FILE_BUFFERS
LPTRANSMIT_FILE_BUFFERS
 
typedef _In_ HANDLE hFile
 
typedef _In_ HANDLE _In_ DWORD nNumberOfBytesToWrite
 
typedef _In_ HANDLE _In_ DWORD
_In_ DWORD 
nNumberOfBytesPerSend
 
typedef _In_ HANDLE _In_ DWORD
_In_ DWORD _Inout_opt_
LPOVERLAPPED 
lpOverlapped
 
typedef _In_ HANDLE _In_ DWORD
_In_ DWORD _Inout_opt_
LPOVERLAPPED _In_opt_
LPTRANSMIT_FILE_BUFFERS 
lpTransmitBuffers
 
typedef _In_ HANDLE _In_ DWORD
_In_ DWORD _Inout_opt_
LPOVERLAPPED _In_opt_
LPTRANSMIT_FILE_BUFFERS _In_
DWORD 
dwReserved
 
typedef _In_ SOCKET sAcceptSocket
 
typedef _In_ SOCKET _Out_writes_bytes_ (dwReceiveDataLength+dwLocalAddressLength+dwRemoteAddressLength) PVOID lpOutputBuffer
 
typedef _In_ SOCKET _In_ DWORD dwReceiveDataLength
 
typedef _In_ SOCKET _In_ DWORD
_In_ DWORD 
dwLocalAddressLength
 
typedef _In_ SOCKET _In_ DWORD
_In_ DWORD _In_ DWORD 
dwRemoteAddressLength
 
typedef _In_ SOCKET _In_ DWORD
_In_ DWORD _In_ DWORD _Out_
LPDWORD 
lpdwBytesReceived
 
typedef _In_ DWORD _In_ DWORD
_In_ DWORD
_Outptr_result_bytebuffer_
LocalSockaddrLength struct
sockaddr ** 
LocalSockaddr
 
typedef _In_ DWORD _In_ DWORD
_In_ DWORD
_Outptr_result_bytebuffer_
LocalSockaddrLength struct
sockaddr _Out_ LPINT 
LocalSockaddrLength
 
typedef _In_ DWORD _In_ DWORD
_In_ DWORD
_Outptr_result_bytebuffer_
LocalSockaddrLength struct
sockaddr _Out_ LPINT
_Outptr_result_bytebuffer_
RemoteSockaddrLength struct
sockaddr ** 
RemoteSockaddr
 
typedef _In_ DWORD _In_ DWORD
_In_ DWORD
_Outptr_result_bytebuffer_
LocalSockaddrLength struct
sockaddr _Out_ LPINT
_Outptr_result_bytebuffer_
RemoteSockaddrLength struct
sockaddr _Out_ LPINT 
RemoteSockaddrLength
 

Functions

typedef BOOL (PASCAL FAR *LPFN_TRANSMITFILE)(_In_ SOCKET hSocket
 
typedef VOID (PASCAL FAR *LPFN_GETACCEPTEXSOCKADDRS)(_In_reads_bytes_(dwReceiveDataLength+dwLocalAddressLength+dwRemoteAddressLength) PVOID lpOutputBuffer
 
int PASCAL FAR WSARecvEx (_In_ SOCKET s, _Out_writes_bytes_to_(len, return) char FAR *buf, _In_ int len, _Inout_ int FAR *flags)
 
BOOL PASCAL FAR TransmitFile (_In_ SOCKET hSocket, _In_ HANDLE hFile, _In_ DWORD nNumberOfBytesToWrite, _In_ DWORD nNumberOfBytesPerSend, _Inout_opt_ LPOVERLAPPED lpOverlapped, _In_opt_ LPTRANSMIT_FILE_BUFFERS lpTransmitBuffers, _In_ DWORD dwReserved)
 
BOOL PASCAL FAR AcceptEx (_In_ SOCKET sListenSocket, _In_ SOCKET sAcceptSocket, _Out_writes_bytes_(dwReceiveDataLength+dwLocalAddressLength+dwRemoteAddressLength) PVOID lpOutputBuffer, _In_ DWORD dwReceiveDataLength, _In_ DWORD dwLocalAddressLength, _In_ DWORD dwRemoteAddressLength, _Out_ LPDWORD lpdwBytesReceived, _Inout_ LPOVERLAPPED lpOverlapped)
 
VOID PASCAL FAR GetAcceptExSockaddrs (_In_reads_bytes_(dwReceiveDataLength+dwLocalAddressLength+dwRemoteAddressLength) PVOID lpOutputBuffer, _In_ DWORD dwReceiveDataLength, _In_ DWORD dwLocalAddressLength, _In_ DWORD dwRemoteAddressLength, _Outptr_result_bytebuffer_(*LocalSockaddrLength) struct sockaddr **LocalSockaddr, _Out_ LPINT LocalSockaddrLength, _Outptr_result_bytebuffer_(*RemoteSockaddrLength) struct sockaddr **RemoteSockaddr, _Out_ LPINT RemoteSockaddrLength)
 

Macro Definition Documentation

#define _MSWSOCK_

Definition at line 14 of file mswsock.h.

#define SIO_UDP_CONNRESET   _WSAIOW(IOC_VENDOR,12)

Definition at line 43 of file mswsock.h.

#define SIO_UDP_NETRESET   _WSAIOW(IOC_VENDOR,15)

Definition at line 49 of file mswsock.h.

#define SO_CONNDATA   0x7000

Definition at line 22 of file mswsock.h.

#define SO_CONNDATALEN   0x7004

Definition at line 26 of file mswsock.h.

#define SO_CONNECT_TIME   0x700C

Definition at line 36 of file mswsock.h.

Referenced by test_AcceptEx(), test_send(), and WSPGetSockOpt().

#define SO_CONNOPT   0x7001

Definition at line 23 of file mswsock.h.

#define SO_CONNOPTLEN   0x7005

Definition at line 27 of file mswsock.h.

#define SO_DISCDATA   0x7002

Definition at line 24 of file mswsock.h.

#define SO_DISCDATALEN   0x7006

Definition at line 28 of file mswsock.h.

#define SO_DISCOPT   0x7003

Definition at line 25 of file mswsock.h.

#define SO_DISCOPTLEN   0x7007

Definition at line 29 of file mswsock.h.

#define SO_MAXDG   0x7009

Definition at line 33 of file mswsock.h.

#define SO_MAXPATHDG   0x700A

Definition at line 34 of file mswsock.h.

#define SO_OPENTYPE   0x7008

Definition at line 30 of file mswsock.h.

#define SO_SYNCHRONOUS_ALERT   0x10

Definition at line 31 of file mswsock.h.

#define SO_SYNCHRONOUS_NONALERT   0x20

Definition at line 32 of file mswsock.h.

#define SO_UPDATE_ACCEPT_CONTEXT   0x700B

Definition at line 35 of file mswsock.h.

#define TCP_BSDURGENT   0x7000

Definition at line 41 of file mswsock.h.

#define TF_DISCONNECT   1

Definition at line 51 of file mswsock.h.

Referenced by test_TransmitFile().

#define TF_REUSE_SOCKET   2

Definition at line 52 of file mswsock.h.

Referenced by test_TransmitFile().

#define TF_USE_DEFAULT_WORKER   0

Definition at line 55 of file mswsock.h.

#define TF_USE_KERNEL_APC   32

Definition at line 57 of file mswsock.h.

#define TF_USE_SYSTEM_THREAD   16

Definition at line 56 of file mswsock.h.

#define TF_WRITE_BEHIND   4

Definition at line 53 of file mswsock.h.

#define TP_DISCONNECT   TF_DISCONNECT

Definition at line 65 of file mswsock.h.

#define TP_REUSE_SOCKET   TF_REUSE_SOCKET

Definition at line 66 of file mswsock.h.

#define TP_USE_DEFAULT_WORKER   TF_USE_DEFAULT_WORKER

Definition at line 67 of file mswsock.h.

#define TP_USE_KERNEL_APC   TF_USE_KERNEL_APC

Definition at line 69 of file mswsock.h.

#define TP_USE_SYSTEM_THREAD   TF_USE_SYSTEM_THREAD

Definition at line 68 of file mswsock.h.

#define WSAID_ACCEPTEX   {0xb5367df1,0xcbac,0x11cf,{0x95,0xca,0x00,0x80,0x5f,0x48,0xa1,0x92}}

Definition at line 74 of file mswsock.h.

Referenced by AcceptEx(), test_AcceptEx(), and test_completion_port().

#define WSAID_GETACCEPTEXSOCKADDRS   {0xb5367df2,0xcbac,0x11cf,{0x95,0xca,0x00,0x80,0x5f,0x48,0xa1,0x92}}

Definition at line 77 of file mswsock.h.

Referenced by AcceptEx(), and test_AcceptEx().

#define WSAID_TRANSMITFILE   {0xb5367df0,0xcbac,0x11cf,{0x95,0xca,0x00,0x80,0x5f,0x48,0xa1,0x92}}

Definition at line 71 of file mswsock.h.

Referenced by test_TransmitFile(), and TransmitFile().

Typedef Documentation

_Out_ PIO_STATUS_BLOCK _Out_writes_bytes_

Definition at line 101 of file mswsock.h.

Definition at line 102 of file mswsock.h.

Definition at line 102 of file mswsock.h.

Definition at line 102 of file mswsock.h.

typedef _In_ HANDLE hFile

Definition at line 90 of file mswsock.h.

Definition at line 90 of file mswsock.h.

Definition at line 90 of file mswsock.h.

Definition at line 100 of file mswsock.h.

Function Documentation

BOOL PASCAL FAR AcceptEx ( _In_ SOCKET  sListenSocket,
_In_ SOCKET  sAcceptSocket,
_Out_writes_bytes_(dwReceiveDataLength+dwLocalAddressLength+dwRemoteAddressLength) PVOID  lpOutputBuffer,
_In_ DWORD  dwReceiveDataLength,
_In_ DWORD  dwLocalAddressLength,
_In_ DWORD  dwRemoteAddressLength,
_Out_ LPDWORD  lpdwBytesReceived,
_Inout_ LPOVERLAPPED  lpOverlapped 
)
typedef BOOL ( PASCAL FAR LPFN_TRANSMITFILE)
VOID PASCAL FAR GetAcceptExSockaddrs ( _In_reads_bytes_(dwReceiveDataLength+dwLocalAddressLength+dwRemoteAddressLength) PVOID  lpOutputBuffer,
_In_ DWORD  dwReceiveDataLength,
_In_ DWORD  dwLocalAddressLength,
_In_ DWORD  dwRemoteAddressLength,
_Outptr_result_bytebuffer_ *LocalSockaddrLength struct sockaddr **  LocalSockaddr,
_Out_ LPINT  LocalSockaddrLength,
_Outptr_result_bytebuffer_ *RemoteSockaddrLength struct sockaddr **  RemoteSockaddr,
_Out_ LPINT  RemoteSockaddrLength 
)
BOOL PASCAL FAR TransmitFile ( _In_ SOCKET  hSocket,
_In_ HANDLE  hFile,
_In_ DWORD  nNumberOfBytesToWrite,
_In_ DWORD  nNumberOfBytesPerSend,
_Inout_opt_ LPOVERLAPPED  lpOverlapped,
_In_opt_ LPTRANSMIT_FILE_BUFFERS  lpTransmitBuffers,
_In_ DWORD  dwReserved 
)
typedef VOID ( PASCAL FAR LPFN_GETACCEPTEXSOCKADDRS)
int PASCAL FAR WSARecvEx ( _In_ SOCKET  s,
_Out_writes_bytes_to_(len, return) char FAR buf,
_In_ int  len,
_Inout_ int FAR flags 
)