Module: WinSock2 Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: Functional Objects Library Public License Version 1.0 Dual-license: GNU Lesser General Public License Warranty: Distributed WITHOUT WARRANTY OF ANY KIND // This file is automatically generated from "mswsock.h"; do not edit. // Adapted from: /*++ Module Name: mswsock.h Abstract: This module contains the Microsoft-specific extensions to the Windows Sockets API. Author: Keith Moore (keithmo) 06-Oct-1995 (Separated from WINSOCK.H). Revision History: --*/ define inline-only constant $SO-CONNDATA = #x7000; define inline-only constant $SO-CONNOPT = #x7001; define inline-only constant $SO-DISCDATA = #x7002; define inline-only constant $SO-DISCOPT = #x7003; define inline-only constant $SO-CONNDATALEN = #x7004; define inline-only constant $SO-CONNOPTLEN = #x7005; define inline-only constant $SO-DISCDATALEN = #x7006; define inline-only constant $SO-DISCOPTLEN = #x7007; define inline-only constant $SO-OPENTYPE = #x7008; define inline-only constant $SO-SYNCHRONOUS-ALERT = #x10; define inline-only constant $SO-SYNCHRONOUS-NONALERT = #x20; define inline-only constant $SO-MAXDG = #x7009; define inline-only constant $SO-MAXPATHDG = #x700A; define inline-only constant $SO-UPDATE-ACCEPT-CONTEXT = #x700B; define inline-only constant $SO-CONNECT-TIME = #x700C; define inline-only constant $TCP-BSDURGENT = #x7000; define inline-only C-function WSARecvEx parameter s :: ; parameter buf :: ; parameter len :: ; parameter flags :: ; result value :: ; c-name: "WSARecvEx", c-modifiers: "__stdcall"; end; define C-struct sealed inline-only slot Head-value :: ; sealed inline-only slot HeadLength-value :: ; sealed inline-only slot Tail-value :: ; sealed inline-only slot TailLength-value :: ; pointer-type-name: ; c-name: "struct _TRANSMIT_FILE_BUFFERS"; end C-struct ; define inline constant = ; define inline-only constant $TF-DISCONNECT = #x01; define inline-only constant $TF-REUSE-SOCKET = #x02; define inline-only constant $TF-WRITE-BEHIND = #x04; define inline-only C-function TransmitFile input parameter hSocket :: ; input parameter hFile :: ; input parameter nNumberOfBytesToWrite :: ; input parameter nNumberOfBytesPerSend :: ; input parameter lpOverlapped :: ; input parameter lpTransmitBuffers :: ; input parameter dwReserved :: ; result value :: ; c-name: "TransmitFile", c-modifiers: "__stdcall"; end; define inline-only C-function AcceptEx input parameter sListenSocket :: ; input parameter sAcceptSocket :: ; input parameter lpOutputBuffer :: ; input parameter dwReceiveDataLength :: ; input parameter dwLocalAddressLength :: ; input parameter dwRemoteAddressLength :: ; output parameter lpdwBytesReceived :: ; input parameter lpOverlapped :: ; result value :: ; c-name: "AcceptEx", c-modifiers: "__stdcall"; end; define inline-only C-function GetAcceptExSockaddrs input parameter lpOutputBuffer :: ; input parameter dwReceiveDataLength :: ; input parameter dwLocalAddressLength :: ; input parameter dwRemoteAddressLength :: ; output parameter LocalSockaddr :: ; output parameter LocalSockaddrLength :: ; output parameter RemoteSockaddr :: ; output parameter RemoteSockaddrLength :: ; c-name: "GetAcceptExSockaddrs", c-modifiers: "__stdcall"; end; define constant = ; define constant = ; define constant = ; define sealed domain make (singleton()); define sealed domain initialize ();