亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? winsock.pas

?? 包含常用Internet協議TCP,UDP、HTTP、FTP、Telnet等
?? PAS
?? 第 1 頁 / 共 2 頁
字號:
{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Author:       Fran鏾is PIETTE, C.H.R. Citadelle
EMail:        francois.piette@pophost.eunet.be  http://www.rtfm.be/fpiette
              francois.piette@rtfm.be
Creation:     July 18, 1996
Object:       Windows 16bit API Interface Unit for Delphi 1.x and
              compatible with Borland Delphi 2.x Winsock
Support:      Please ask your question in the following newsgroup:
              news://forums.borland.com/borland.public.delphi.vcl.components.using
Legal issues: Copyright (C) 1996, 1997, 1998 by Fran鏾is PIETTE 
              <francois.piette@pophost.be>

              This software is provided 'as-is', without any express or
  	      implied warranty.  In no event will the author be held liable
              for any  damages arising from the use of this software.

              Permission is granted to anyone to use this software for any
              purpose, including commercial applications, and to alter it
              and redistribute it freely, subject to the following
              restrictions:

              1. The origin of this software must not be misrepresented,
                 you must not claim that you wrote the original software.
                 If you use this software in a product, an acknowledgment
                 in the product documentation would be appreciated but is
                 not required.

              2. Altered source versions must be plainly marked as such, and
                 must not be misrepresented as being the original software.

              3. This notice may not be removed or altered from any source 
                 distribution.

Updates:
Sep 21, 1997 Added $IFDEF to warn Delphi 2 or 3 user that something is wrong
             if they use this file.
Dec 13, 1997 Changed winsocket form 'WINSOCK.DLL' to 'WINSOCK' because Win 3.x
             like thos have it without extension (don't ask me why !)

 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
unit Winsock;

interface

{$IFNDEF VER80}
  'This file is for use with Delphi 1 only. Use the Borland provided file'
  'with any other Delphi Version. If you use this file with Delphi 2 or 3'
  'this is probably because your library path is wrong or you have not'
  'restored the directory structure when unzipping the file (you must use'
  'pkunzip option -d to restore the files).'
{$ENDIF}


uses WinTypes, WinProcs;

const
  winsocket = 'WINSOCK';
  { If your application can't find winsock.dll on startup, please try to  }
  { change the preceding line to "winsocket = 'winsock.dll';"             }
  { Also, try upper or lower case letters. Win 3.x is very capricious !   }

  { Misc constants }
  FD_SETSIZE               = 64;

  {
    Commands for ioctlsocket(),  taken from the BSD file fcntl.h.

    Ioctl's have the command encoded in the lower word,
    and the size of any in or out parameters in the upper
    word.  The high 2 bits of the upper word are used
    to encode the in/out status of the parameter; for now
    we restrict parameters to at most 128 bytes.
    0x20000000 distinguishes new & old ioctl's
  }
  IOCPARM_MASK             = $7f;         { parameters must be < 128 bytes }
  IOC_VOID                 = $20000000;   { no parameters }
  IOC_OUT                  = $40000000;   { copy out parameters }
  IOC_IN                   = $80000000;   { copy in parameters }
  IOC_INOUT                = (IOC_IN + IOC_OUT);

  FIONREAD                 = $4004667F;   { get # bytes to read }
  FIONBIO                  = $8004667E;   { set/clear non-blocking i/o }
  FIOASYNC                 = $8004667D;   { set/clear async i/o }

  { Socket I/O Controls }
  SIOCSHIWAT               = $80047300;   { set high watermark }
  SIOCGHIWAT               = $40047301;   { set low watermark }
  SIOCSLOWAT               = $80047302;   { set low watermark }
  SIOCGLOWAT               = $40047303;   { get low watermark }
  SIOCATMARK               = $40047307;   { at oob mark? }

  INADDR_ANY               = $00000000;
  INADDR_LOOPBACK          = $7f000001;
  INADDR_BROADCAST         = $ffffffff;
  INADDR_NONE              = $ffffffff;

  WSADESCRIPTION_LEN       = 256;
  WSASYS_STATUS_LEN        = 128;

  { Protocols }
  IPPROTO_IP         =  0;              { dummy for IP }
  IPPROTO_ICMP       =  1;              { control message protocol }
  IPPROTO_GGP        =  2;              { gateway^2 (deprecated) }
  IPPROTO_TCP        =  6;              { tcp }
  IPPROTO_PUP        =  12;             { pup }
  IPPROTO_UDP        =  17;             { user datagram protocol }
  IPPROTO_IDP        =  22;             { xns idp }
  IPPROTO_ND         =  77;             { UNOFFICIAL net disk proto }
  IPPROTO_RAW        = 255;             { raw IP packet }
  IPPROTO_MAX        = 256;

  { Port/socket numbers: network standard functions }
  IPPORT_ANY         =     0;
  IPPORT_ECHO        =     7;
  IPPORT_DISCARD     =     9;
  IPPORT_SYSTAT      =     11;
  IPPORT_DAYTIME     =     13;
  IPPORT_NETSTAT     =     15;
  IPPORT_FTP         =     21;
  IPPORT_TELNET      =     23;
  IPPORT_SMTP        =     25;
  IPPORT_TIMESERVER  =     37;
  IPPORT_NAMESERVER  =     42;
  IPPORT_WHOIS       =     43;
  IPPORT_MTP         =     57;

  { Port/socket numbers: host specific functions }
  IPPORT_TFTP        =     69;
  IPPORT_RJE         =     77;
  IPPORT_FINGER      =     79;
  IPPORT_TTYLINK     =     87;
  IPPORT_SUPDUP      =     95;

  { UNIX TCP sockets }
  IPPORT_EXECSERVER  =     512;
  IPPORT_LOGINSERVER =     513;
  IPPORT_CMDSERVER   =     514;
  IPPORT_EFSSERVER   =     520;

  { UNIX UDP sockets }
  IPPORT_BIFFUDP     =     512;
  IPPORT_WHOSERVER   =     513;
  IPPORT_ROUTESERVER =     520;

  { Ports < IPPORT_RESERVED are reserved for privileged processes (e.g. root) }
  IPPORT_RESERVED    =     1024;

  { Link numbers }
  IMPLINK_IP         =     155;
  IMPLINK_LOWEXPER   =     156;
  IMPLINK_HIGHEXPER  =     158;

  INVALID_SOCKET     =     $ffff;
  SOCKET_ERROR       =     (-1);

  { Types }
  SOCK_STREAM        =  1;              { stream socket }
  SOCK_DGRAM         =  2;              { datagram socket }
  SOCK_RAW           =  3;              { raw-protocol interface }
  SOCK_RDM           =  4;              { reliably-delivered message }
  SOCK_SEQPACKET     =  5;              { sequenced packet stream }

  { Option flags per-socket }
  SO_DEBUG           =  $0001;         { turn on debugging info recording }
  SO_ACCEPTCONN      =  $0002;         { socket has had listen() }
  SO_REUSEADDR       =  $0004;         { allow local address reuse }
  SO_KEEPALIVE       =  $0008;         { keep connections alive }
  SO_DONTROUTE       =  $0010;         { just use interface addresses }
  SO_BROADCAST       =  $0020;         { permit sending of broadcast msgs }
  SO_USELOOPBACK     =  $0040;         { bypass hardware when possible }
  SO_LINGER          =  $0080;         { linger on close if data present }
  SO_OOBINLINE       =  $0100;         { leave received OOB data in line }
  SO_DONTLINGER      = (not SO_LINGER);

 { Additional options }
  SO_SNDBUF          =  $1001;         { send buffer size }
  SO_RCVBUF          =  $1002;         { receive buffer size }
  SO_SNDLOWAT        =  $1003;         { send low-water mark }
  SO_RCVLOWAT        =  $1004;         { receive low-water mark }
  SO_SNDTIMEO        =  $1005;         { send timeout }
  SO_RCVTIMEO        =  $1006;         { receive timeout }
  SO_ERROR           =  $1007;         { get error status and clear }
  SO_TYPE            =  $1008;         { get socket type }


  { TCP options }
  TCP_NODELAY        =  $0001;

  { Address families }
  AF_UNSPEC          =  0;              { unspecified }
  AF_UNIX            =  1;              { local to host (pipes, portals) }
  AF_INET            =  2;              { internetwork: UDP, TCP, etc. }
  AF_IMPLINK         =  3;              { arpanet imp addresses }
  AF_PUP             =  4;              { pup protocols: e.g. BSP }
  AF_CHAOS           =  5;              { mit CHAOS protocols }
  AF_NS              =  6;              { XEROX NS protocols }
  AF_ISO             =  7;              { ISO protocols }
  AF_OSI             =  AF_ISO;         { OSI is ISO }
  AF_ECMA            =  8;              { european computer manufacturers }
  AF_DATAKIT         =  9;              { datakit protocols }
  AF_CCITT           =  10;             { CCITT protocols, X.25 etc }
  AF_SNA             =  11;             { IBM SNA }
  AF_DECnet          =  12;             { DECnet }
  AF_DLI             =  13;             { Direct data link interface }
  AF_LAT             =  14;             { LAT }
  AF_HYLINK          =  15;             { NSC Hyperchannel }
  AF_APPLETALK       =  16;             { AppleTalk }
  AF_NETBIOS         =  17;             { NetBios-style addresses }
  AF_MAX             =  18;

  { Protocol families, same as address families for now }
  PF_UNSPEC          =  AF_UNSPEC;
  PF_UNIX            =  AF_UNIX;
  PF_INET            =  AF_INET;
  PF_IMPLINK         =  AF_IMPLINK;
  PF_PUP             =  AF_PUP;
  PF_CHAOS           =  AF_CHAOS;
  PF_NS              =  AF_NS;
  PF_ISO             =  AF_ISO;
  PF_OSI             =  AF_OSI;
  PF_ECMA            =  AF_ECMA;
  PF_DATAKIT         =  AF_DATAKIT;
  PF_CCITT           =  AF_CCITT;
  PF_SNA             =  AF_SNA;
  PF_DECnet          =  AF_DECnet;
  PF_DLI             =  AF_DLI;
  PF_LAT             =  AF_LAT;
  PF_HYLINK          =  AF_HYLINK;
  PF_APPLETALK       =  AF_APPLETALK;
  PF_MAX             =  AF_MAX;

 { Level number for (get/set)sockopt() to apply to socket itself }
 SOL_SOCKET          =  -1;             { options for socket level }

 { Maximum queue length specifiable by listen }
 SOMAXCONN           =   5;

 MSG_OOB             =   1;             { process out-of-band data }
 MSG_PEEK            =   2;             { peek at incoming message }
 MSG_DONTROUTE       =   4;             { send without using routing tables }

 MSG_MAXIOVLEN       =  16;

 { Define constant based on rfc883, used by gethostbyxxxx() calls }
 MAXGETHOSTSTRUCT    =  1024;

 { Define flags to be used with the WSAAsyncSelect() call }
 FD_READ             =  1;
 FD_WRITE            =  2;
 FD_OOB              =  4;
 FD_ACCEPT           =  8;
 FD_CONNECT          =  16;
 FD_CLOSE            =  32;

 { All Windows Sockets error constants are biased by WSABASEERR fromthe normal }
 WSABASEERR          = 10000;

 { Windows Sockets definitions of regular Microsoft C error constants }
 WSAEINTR            = (WSABASEERR+4);
 WSAEBADF            = (WSABASEERR+9);
 WSAEACCES           = (WSABASEERR+13);
 WSAEFAULT           = (WSABASEERR+14);
 WSAEINVAL           = (WSABASEERR+22);
 WSAEMFILE           = (WSABASEERR+24);

 { Windows Sockets definitions of regular Berkeley error constants }
 WSAEWOULDBLOCK      = (WSABASEERR+35);
 WSAEINPROGRESS      = (WSABASEERR+36);
 WSAEALREADY         = (WSABASEERR+37);
 WSAENOTSOCK         = (WSABASEERR+38);
 WSAEDESTADDRREQ     = (WSABASEERR+39);
 WSAEMSGSIZE         = (WSABASEERR+40);
 WSAEPROTOTYPE       = (WSABASEERR+41);
 WSAENOPROTOOPT      = (WSABASEERR+42);
 WSAEPROTONOSUPPORT  = (WSABASEERR+43);
 WSAESOCKTNOSUPPORT  = (WSABASEERR+44);
 WSAEOPNOTSUPP       = (WSABASEERR+45);
 WSAEPFNOSUPPORT     = (WSABASEERR+46);
 WSAEAFNOSUPPORT     = (WSABASEERR+47);
 WSAEADDRINUSE       = (WSABASEERR+48);
 WSAEADDRNOTAVAIL    = (WSABASEERR+49);
 WSAENETDOWN         = (WSABASEERR+50);
 WSAENETUNREACH      = (WSABASEERR+51);
 WSAENETRESET        = (WSABASEERR+52);
 WSAECONNABORTED     = (WSABASEERR+53);
 WSAECONNRESET       = (WSABASEERR+54);
 WSAENOBUFS          = (WSABASEERR+55);
 WSAEISCONN          = (WSABASEERR+56);
 WSAENOTCONN         = (WSABASEERR+57);
 WSAESHUTDOWN        = (WSABASEERR+58);
 WSAETOOMANYREFS     = (WSABASEERR+59);
 WSAETIMEDOUT        = (WSABASEERR+60);
 WSAECONNREFUSED     = (WSABASEERR+61);
 WSAELOOP            = (WSABASEERR+62);
 WSAENAMETOOLONG     = (WSABASEERR+63);
 WSAEHOSTDOWN        = (WSABASEERR+64);
 WSAEHOSTUNREACH     = (WSABASEERR+65);
 WSAENOTEMPTY        = (WSABASEERR+66);
 WSAEPROCLIM         = (WSABASEERR+67);
 WSAEUSERS           = (WSABASEERR+68);
 WSAEDQUOT           = (WSABASEERR+69);
 WSAESTALE           = (WSABASEERR+70);
 WSAEREMOTE          = (WSABASEERR+71);

 { Extended Windows Sockets error constant definitions }
 WSASYSNOTREADY      = (WSABASEERR+91);
 WSAVERNOTSUPPORTED  = (WSABASEERR+92);
 WSANOTINITIALISED   = (WSABASEERR+93);

 { Authoritative Answer: Host not found }
 WSAHOST_NOT_FOUND   = (WSABASEERR+1001);
 HOST_NOT_FOUND      = WSAHOST_NOT_FOUND;

{ Non-Authoritative: Host not found, or SERVERFAIL }
 WSATRY_AGAIN        = (WSABASEERR+1002);
 TRY_AGAIN           = WSATRY_AGAIN;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品主播直播| 国产一区二区日韩精品| 精品一区二区久久久| 美女性感视频久久| 国产白丝精品91爽爽久久 | 国产精品一区二区91| fc2成人免费人成在线观看播放| 国产成人高清视频| 日韩激情在线观看| 成人视屏免费看| 欧美日韩你懂得| 久久久久久一级片| 亚洲欧洲在线观看av| 中文字幕在线免费不卡| 一区二区三区四区不卡在线| 亚洲午夜羞羞片| 日本亚洲三级在线| 成人av片在线观看| 欧美日韩国产另类不卡| 日本一区二区三区国色天香| 专区另类欧美日韩| 国产成人欧美日韩在线电影| 大陆成人av片| 欧美人xxxx| 亚洲综合一区二区精品导航| 麻豆精品精品国产自在97香蕉| 91视频观看免费| 国产校园另类小说区| 久久99国产精品久久99果冻传媒| 99精品国产热久久91蜜凸| 欧美日韩精品三区| 亚洲黄网站在线观看| 成人天堂资源www在线| 欧美第一区第二区| 亚洲一区二区高清| 在线看不卡av| 国产精品天天看| 国产一区二区三区免费| 久久国产精品一区二区| 国产精品1区2区| 欧美r级在线观看| 一区二区激情小说| 在线视频一区二区三| 国产精品国产三级国产普通话蜜臀| 麻豆精品精品国产自在97香蕉| 欧美日精品一区视频| 亚洲国产欧美在线人成| 欧美在线免费观看亚洲| 午夜电影一区二区| 欧美一区二区三区视频在线| 日韩**一区毛片| 精品国精品国产| 国产寡妇亲子伦一区二区| 国产欧美精品一区二区三区四区| 国产精品18久久久久久久网站| 精品成人一区二区| 色综合久久综合网97色综合| 亚洲色大成网站www久久九九| 色www精品视频在线观看| 免费观看在线综合| 亚洲视频一区二区在线观看| 8x福利精品第一导航| 国产精品资源网站| 欧美岛国在线观看| 国产aⅴ精品一区二区三区色成熟| 欧美极品xxx| 亚洲精品少妇30p| 8v天堂国产在线一区二区| 成人久久久精品乱码一区二区三区| 亚洲精选一二三| 日本一区二区三区视频视频| 欧美日韩中文精品| 一本久久精品一区二区| 国产成人免费9x9x人网站视频| 日韩福利电影在线| 亚洲日本电影在线| 午夜激情一区二区三区| 日本va欧美va精品发布| 成人在线综合网| 日韩欧美一区在线| 国产精品热久久久久夜色精品三区 | 欧美日韩精品欧美日韩精品 | 中文字幕不卡的av| 亚洲高清中文字幕| 欧美国产欧美亚州国产日韩mv天天看完整 | 国产成a人亚洲精| 日韩精品久久理论片| 日本成人在线网站| 日本欧美在线观看| 国产一区二区美女| 99国产精品国产精品毛片| 成人av网站在线观看| 94-欧美-setu| 91精品国模一区二区三区| 欧美精品18+| 国产欧美一区二区三区网站| 欧美国产精品一区二区三区| 亚洲欧美一区二区在线观看| 最新久久zyz资源站| 亚洲成人免费在线| 精品无人区卡一卡二卡三乱码免费卡| 九九国产精品视频| 91毛片在线观看| 日韩一区二区三区高清免费看看| 久久久高清一区二区三区| 亚洲摸摸操操av| 国产一区二区免费在线| 国产不卡在线视频| 成人午夜免费视频| 国模少妇一区二区三区| 激情久久久久久久久久久久久久久久| 久久综合久久99| 欧美成人精品高清在线播放| 精品国产污污免费网站入口 | 亚洲福利一二三区| 福利电影一区二区| 精品久久久久久亚洲综合网| √…a在线天堂一区| 国产呦萝稀缺另类资源| 成人污污视频在线观看| 欧美精品一区二区三区高清aⅴ| 亚洲色图另类专区| 成人aaaa免费全部观看| 亚洲精品在线一区二区| 奇米精品一区二区三区在线观看一| 99久久综合精品| 国产精品成人免费| 成人av在线资源网站| 国产精品亲子乱子伦xxxx裸| 卡一卡二国产精品| 精品久久久久一区| 国产乱码精品一区二区三区五月婷 | 色婷婷狠狠综合| 亚洲欧美日韩国产综合| 色综合天天综合狠狠| 亚洲欧美日韩成人高清在线一区| 国产不卡在线播放| 中文字幕欧美一| 欧美网站大全在线观看| 亚洲国产另类精品专区| 欧美视频一区在线| 精品一区二区免费视频| 国产亚洲综合av| aaa亚洲精品一二三区| 一区二区三区丝袜| 日韩欧美一级精品久久| 成人黄页毛片网站| 天堂va蜜桃一区二区三区漫画版| 日韩欧美国产精品| 99久久精品国产麻豆演员表| 日日夜夜免费精品| 国产精品视频观看| 欧美一区二区久久久| 国产酒店精品激情| 五月婷婷综合网| 国产精品素人视频| 欧美一二三区在线观看| 色婷婷综合久久久| 国产精品一二三区| 久久91精品国产91久久小草| 中文字幕一区二区三区在线播放| 91精品国产色综合久久不卡蜜臀| 99久久精品国产精品久久| 国产酒店精品激情| 青娱乐精品视频| 天堂久久久久va久久久久| 亚洲免费看黄网站| 亚洲综合久久av| 亚洲精品国产品国语在线app| 久久综合资源网| 久久在线观看免费| 欧美不卡一区二区三区四区| 欧美视频一区二区在线观看| 欧美做爰猛烈大尺度电影无法无天| 国产精品中文字幕日韩精品| 国产精品亚洲成人| 国产iv一区二区三区| 丁香啪啪综合成人亚洲小说 | 国产精品系列在线| 国产精品入口麻豆原神| 国产精品你懂的在线欣赏| 中文字幕在线不卡视频| 亚洲欧美怡红院| 水野朝阳av一区二区三区| 免费在线视频一区| 国产精品一区二区三区99| 国产福利一区二区三区视频| 成人视屏免费看| 欧美精品乱码久久久久久| 日韩欧美久久一区| 亚洲国产精品成人综合色在线婷婷| 国产精品二区一区二区aⅴ污介绍| 亚洲日本乱码在线观看| 日产国产欧美视频一区精品 | 国产日韩高清在线| 亚洲一区在线观看免费观看电影高清| 亚洲一级在线观看| 国产一区二区三区免费播放| 欧美午夜精品一区二区三区| 久久色在线观看|