ReactOS  0.4.14-dev-606-g14ebc0b
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_BUFFERSPTRANSMIT_FILE_BUFFERS
 
typedef struct _TRANSMIT_FILE_BUFFERSLPTRANSMIT_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

◆ _MSWSOCK_

#define _MSWSOCK_

Definition at line 14 of file mswsock.h.

◆ SIO_UDP_CONNRESET

#define SIO_UDP_CONNRESET   _WSAIOW(IOC_VENDOR,12)

Definition at line 43 of file mswsock.h.

◆ SIO_UDP_NETRESET

#define SIO_UDP_NETRESET   _WSAIOW(IOC_VENDOR,15)

Definition at line 49 of file mswsock.h.

◆ SO_CONNDATA

#define SO_CONNDATA   0x7000

Definition at line 22 of file mswsock.h.

◆ SO_CONNDATALEN

#define SO_CONNDATALEN   0x7004

Definition at line 26 of file mswsock.h.

◆ SO_CONNECT_TIME

#define SO_CONNECT_TIME   0x700C

Definition at line 36 of file mswsock.h.

◆ SO_CONNOPT

#define SO_CONNOPT   0x7001

Definition at line 23 of file mswsock.h.

◆ SO_CONNOPTLEN

#define SO_CONNOPTLEN   0x7005

Definition at line 27 of file mswsock.h.

◆ SO_DISCDATA

#define SO_DISCDATA   0x7002

Definition at line 24 of file mswsock.h.

◆ SO_DISCDATALEN

#define SO_DISCDATALEN   0x7006

Definition at line 28 of file mswsock.h.

◆ SO_DISCOPT

#define SO_DISCOPT   0x7003

Definition at line 25 of file mswsock.h.

◆ SO_DISCOPTLEN

#define SO_DISCOPTLEN   0x7007

Definition at line 29 of file mswsock.h.

◆ SO_MAXDG

#define SO_MAXDG   0x7009

Definition at line 33 of file mswsock.h.

◆ SO_MAXPATHDG

#define SO_MAXPATHDG   0x700A

Definition at line 34 of file mswsock.h.

◆ SO_OPENTYPE

#define SO_OPENTYPE   0x7008

Definition at line 30 of file mswsock.h.

◆ SO_SYNCHRONOUS_ALERT

#define SO_SYNCHRONOUS_ALERT   0x10

Definition at line 31 of file mswsock.h.

◆ SO_SYNCHRONOUS_NONALERT

#define SO_SYNCHRONOUS_NONALERT   0x20

Definition at line 32 of file mswsock.h.

◆ SO_UPDATE_ACCEPT_CONTEXT

#define SO_UPDATE_ACCEPT_CONTEXT   0x700B

Definition at line 35 of file mswsock.h.

◆ TCP_BSDURGENT

#define TCP_BSDURGENT   0x7000

Definition at line 41 of file mswsock.h.

◆ TF_DISCONNECT

#define TF_DISCONNECT   1

Definition at line 51 of file mswsock.h.

◆ TF_REUSE_SOCKET

#define TF_REUSE_SOCKET   2

Definition at line 52 of file mswsock.h.

◆ TF_USE_DEFAULT_WORKER

#define TF_USE_DEFAULT_WORKER   0

Definition at line 55 of file mswsock.h.

◆ TF_USE_KERNEL_APC

#define TF_USE_KERNEL_APC   32

Definition at line 57 of file mswsock.h.

◆ TF_USE_SYSTEM_THREAD

#define TF_USE_SYSTEM_THREAD   16

Definition at line 56 of file mswsock.h.

◆ TF_WRITE_BEHIND

#define TF_WRITE_BEHIND   4

Definition at line 53 of file mswsock.h.

◆ TP_DISCONNECT

#define TP_DISCONNECT   TF_DISCONNECT

Definition at line 65 of file mswsock.h.

◆ TP_REUSE_SOCKET

#define TP_REUSE_SOCKET   TF_REUSE_SOCKET

Definition at line 66 of file mswsock.h.

◆ TP_USE_DEFAULT_WORKER

#define TP_USE_DEFAULT_WORKER   TF_USE_DEFAULT_WORKER

Definition at line 67 of file mswsock.h.

◆ TP_USE_KERNEL_APC

#define TP_USE_KERNEL_APC   TF_USE_KERNEL_APC

Definition at line 69 of file mswsock.h.

◆ TP_USE_SYSTEM_THREAD

#define TP_USE_SYSTEM_THREAD   TF_USE_SYSTEM_THREAD

Definition at line 68 of file mswsock.h.

◆ WSAID_ACCEPTEX

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

Definition at line 74 of file mswsock.h.

◆ WSAID_GETACCEPTEXSOCKADDRS

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

Definition at line 77 of file mswsock.h.

◆ WSAID_TRANSMITFILE

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

Definition at line 71 of file mswsock.h.

Typedef Documentation

◆ _Out_writes_bytes_

_Out_ PIO_STATUS_BLOCK _Out_writes_bytes_

Definition at line 101 of file mswsock.h.

◆ dwLocalAddressLength

Definition at line 102 of file mswsock.h.

◆ dwReceiveDataLength

Definition at line 102 of file mswsock.h.

◆ dwRemoteAddressLength

Definition at line 102 of file mswsock.h.

◆ dwReserved

◆ hFile

typedef _In_ HANDLE hFile

Definition at line 90 of file mswsock.h.

◆ LocalSockaddr

◆ LocalSockaddrLength

◆ lpdwBytesReceived

◆ lpOverlapped

◆ LPTRANSMIT_FILE_BUFFERS

◆ lpTransmitBuffers

◆ nNumberOfBytesPerSend

Definition at line 90 of file mswsock.h.

◆ nNumberOfBytesToWrite

Definition at line 90 of file mswsock.h.

◆ PTRANSMIT_FILE_BUFFERS

◆ RemoteSockaddr

◆ RemoteSockaddrLength

◆ sAcceptSocket

Definition at line 100 of file mswsock.h.

◆ TRANSMIT_FILE_BUFFERS

Function Documentation

◆ AcceptEx()

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 
)

◆ BOOL()

typedef BOOL ( PASCAL FAR LPFN_TRANSMITFILE)

◆ GetAcceptExSockaddrs()

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 
)

◆ TransmitFile()

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 
)

◆ VOID()

typedef VOID ( PASCAL FAR LPFN_GETACCEPTEXSOCKADDRS)

◆ WSARecvEx()

int PASCAL FAR WSARecvEx ( _In_ SOCKET  s,
_Out_writes_bytes_to_(len, return) char FAR buf,
_In_ int  len,
_Inout_ int FAR flags 
)