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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? wsocket.pas

?? Delphi 網(wǎng)絡(luò)通信協(xié)議代碼,是多種網(wǎng)絡(luò)協(xié)議的實現(xiàn)代碼
?? PAS
?? 第 1 頁 / 共 5 頁
字號:
{*_* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Author:       Fran鏾is PIETTE
Description:  TWSocket class encapsulate the Windows Socket paradigm
EMail:        francois.piette@pophost.eunet.be    francois.piette@rtfm.be
              http://www.rtfm.be/fpiette
Creation:     April 1996
Version:      4.07
Support:      Use the mailing list twsocket@rtfm.be See website for details.
Legal issues: Copyright (C) 1996, 1997, 1998, 1999 by Fran鏾is PIETTE
              Rue de Grady 24, 4053 Embourg, Belgium. Fax: +32-4-365.74.56
              <francois.piette@pophost.eunet.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.

              4. You must register this software by sending a picture postcard
                 to the author. Use a nice stamp and mention your name, street
                 address, EMail address and any comment you like to say.

History:
Jul 18, 1996  Move all low level socket to winsock to be Delphi 2.x compatible
Sep 18, 1996  Use structured exception for handling errors
Sep 19, 1996  Check csDestroying before invoking event handler
Nov 04, 1996  Better error handling
Jan 31, 1997  Changed property assignation for Addr, Port and Proto
              Added notification handler
Feb 14, 1997  Corrected bug in property assignation for Addr, Port and Proto
Mar 26, 1997  Make UDP protocol work correctly
              Enable UDP broadcasting by using addr 255.255.255.255
Apr 1, 1997   Added class function when independent of any open socket
              Moved InitData as global
              Added ReceivedFrom function
              Added ResolveHost function
Jul 22, 1997  Adapted to Delphi 3 which has a modified winsock.accept
Aug 13, 1997  'sin' member made public
Aug 24, 1997  Create the only help
              Makes writing HSocket the same as calling Dup.
Sep 5, 1997   Version 2.01, added WinsockInfo function
Sep 21, 1997  Version 2.02, make it really thread safe
                            created global WSocketVersion
Sep 25, 1997  Version 2.04, port to C++Builder
Sep 27, 1997  Version 2.05. All class methods converted to global
              procedure or function because C++Builder do not like
              class method very much.
              Old class method              New global function
              ----------------              -------------------
              WinsockInfo                   WinsockInfo
              SocketErrorDesc               WSocketErrorDesc
              GetHostByAddr                 WSocketGetHostByAddr
              GetHostByName                 WSocketGetHostByName
              ResolveHost                   WSocketResolveHost
              HostName                      LocalHostName
Oct 02, 1997  V2.06 Added a check in destructor to avoid calling WSACleanup at
              design time which crashes the excellent Eagle Software CDK.
Oct 16, 1997  V2.07 Added PortNum property with numeric value for Port.
              Added RcvdCount property to return the number of
              characters received in the buffer but not read yet. Do not
              confuse with ReadCount which returns the number of chars
              already received.
              Added a check for FWait assignation in front of ReadLine
              Prefixed each TSocketState value by 'ws' to avoid name conflict.
              Moved FHSocket member to private section because the property
              HSocket does the right job.
              Added a check for state closed when changing Port, Proto and Addr.
Oct 22, 1997  V2.08 Added Flush method (asked by john@nexnix.co.uk) and
              FlushTimeout property (default to 60 seconds).
Oct 22, 1997  V2.09 Added SendFlags property to enable sending in or out of
              band data (normal or urgent, see RFC-1122)
Oct 28, 1997  V2.10 Added an OnLineTooLong event and code to handle the case
              where ReadLine has been called and the buffer overflowed (line
              long)
Oct 29, 1997  V2.11 Added DnsLookup functionnality (DnsLookup method, DnsResult
              property and DnsLookupDone event).
              Calling the connect method with a hostname work well except that
              it could block for a long period (ie: 2 minutes) if DNS do not
              respond. Calling the connect method with a numeric IP address will
              never block. So you can call DnsLookup to start hostname
              resolution in the background, after some time you evenutually
              receive the OnDnsLookupDone event. The copy the DnsResult property
              to the Addr property and call connect.
Oct 30, 1997  V2.12 added a check in DnsLookup to handel numeric IP which do
              not require any lookup. The numeric IP is treated immediately
              and immediately trigger the DnsLookupDone event.
              I modified the code to be compatible with Delphi 1.
Oct 31, 1997  V2.13 added CancelDnsLookup procedure.
Nov 09, 1997  V2.14 add LocalIPList function to get the list of local IP
              addresses (you have two IP addresses when connected to a LAN
              and an ISP).
Nov 11, 1997  V2.15 Made TCustomWSocket with virtual functions. This will
              allow to easily descend a new component from TCustomWSocket.
              Make ReadLine stop when the connection is broken.
Nov 12, 1997  V2.16 Corrected bug (Justin Yunke <yunke@productivity.org>)
              in LocalIPList: phe should be checked for nil.
Nov 18, 1997  Added ReceiveStr function (Suggested by FLDKNHA@danisco.com)
Nov 30, 1997  V2.18 Added a call to OnDnsLookupDone when canceling.
Dec 04, 1997  V2.19 Added LocalPort property and SessionConnected event
              for UDP socket.
              V2.20 Modified MessageLoop and ProcessMessages to process not
              only the socket messages, but all messages (necessary if the
              thread has several TWSocket for example).
Dec 09, 1997  V2.21 Corrected a minor bug in ReceiveStr. Detected by
              david@e.co.za (David Butler).
Dec 10, 1997  V2.22 Corrected a minor bug in Send which now correctly
              returns the number of bytes sent. Detected by
              james.huggins@blockbuster.com
Dec 16, 1997  V2.23 Corrected a bug which prevented the receiving of datagram
              from a UDP socket.
              Thank to Mark Melvin (melvin@misrg.ml.org) for pointing it.
Dec 20, 1997  V2.24 Added the PeekData function as suggested by Matt Rose
              mcrose@avproinc.com
Dec 26, 1997  V2.25 Added the Text property as suggested by Daniel P. Stasinski
              <dse@pacific.net>. Made GetXPort work even when listening as
              suggested by is81024@cis.nctu.edu.tw.
Jan 10, 1998  V2.26 Check for null hostname in DNSLookup
              Added DnsResultList with all IP addresses returned form DNS
Jan 13, 1998  V2.27 a Added MultiThreaaded property to tell the component that
              it is working in a thread and should take care of it (call
              internal ProcessMessages in place of Application.ProcessMessages,
              and do not use the WaitCtrl object).
Jan 15, 1998  V2.28 WMAsyncSelect revisited to work properly with NT winsock 2.
Feb 10, 1998  V2.29 Added an OnError event. If not assigned, then the component
              raise an exception when the error occurs.
Feb 14, 1998  V2.30 Published Text property
Feb 16, 1998  V2.31 Added virtual methods to trigger events
              Renamed all event handler variable to begin with FOn
Feb 26, 1998  V2.32 Added procedure PutDataInSendBuffer and PutStringInSendBuffer
              Using PutDataInSendBuffer you can place data in the send buffer
              without actualy trying to send it. This allows to place several
              (probably small) data chunk before the component attempt to send
              it. This prevent small packet to be sent. You can call
              Send(nil, 0) to force the component to begin to send data.
              If the buffer was not empty, PutDataInSendBuffer will just queue
              data to the buffer. This data will be sent in sequence.
Mar 02, 1998  V2.33 Changed the error check with WSAstartup as pointed out by
              Donald Strenczewilk (dstrenz@servtech.com)
Mar 06, 1998  V2.34 Added a runtime property to change the buffer size.
Mar 27, 1998  V2.35 Adapted for C++Builder 3
Apr 08, 1998  V2.36 Made SetDefaultValue virtual
Apr 13, 1998  V2.37 Reset FDnsLookupHandle to 0 after a failed call to
              WSACancelAsyncRequest
Apr 22, 1998  V2.38 Published AllSent property to let outside know if our
              buffer has some data unsent.
Apr 28, 1998  V2.39 Added LingerOnOff and LingerTimeout. Default values are
              wsLingerOn and timeout = 0 to behave by default as before.
              This value is setup just before Connect. Call SetLingerOption to
              set the linger option on the fly (the connection must be
              established to set the option). See winsock.closesocket on line
              help (winsock.hlp or win32.hlp) for a dsicussion of this option
              usage.
May 06, 1998  V2.40 Added a workaround for Trumpet winsock inet_addr bug.
              Thanks to Andrej Cuckov <andrej@cuckov.com> for his code.
May 18, 1998  V2.41 Jan Tomasek <xtomasej@feld.cvut.cz> found that Trumpet
              Winsock (Win 3.11) has some bugs and suggested a workaround in
              TryToSend procedure. This workaround makes TWSocket blocking in
              some cases. A new property enables the workaround. See code.
Jun 01, 1998  V2.42 In finalization section, check for not assigned IPList.
Jun 15, 1998  V2.43 Added code to finalization section to unload winsock if
              still loaded at that point (this happend if no socket where
              created but WinsockInfo called). Suggested by Daniel Fazekas
              <fdsoft@dns.gyor-ph.hu>
Jun 27, 1998  V2.44 Added checks for valid arguments in SetPort, SetProto
              and SetAddr. Deferred address resolution until Connect or Listen.
Jul 08, 1998  V2.45 Adadpted for Delphi 4
Jul 20, 1998  V2.46 Added SetWindowLong(FWindowHandle, 0, 0) in the destructor
              and a check for TWSocket class in XSocketWindowProc.
              Added virtual method RealSend.
Jul 23, 1998  V2.47 Added a TriggerSessionClosed from TryToSend in case of
              send error. This was called before, but with a nul error argument.
              Now it correctly gives the error number.
              Added a trashcan to receive data if no OnDataAvailable event
              handler is installed. Just receive the data and throw it away.
              Added reverse dns lookup asynchronous code (IP -> HostName).
              Thanks to Daniel Fazekas <fdsoft@dns.gyor-ph.hu> for his code.
Jul 30, 1998  V2.48 Changed local variable "error" by FLastError in SocketError
              to make it available from the OnError handler. Thanks to
              dana@medical-info.com for finding this bug.
              In Abort procedure, deleted all buffered data because it was send
              the next time the socket is opened !
              Added CancelDnsLookup in Abort procedure.
Aug 28, 1998  V2.49 Made InternalClose and ReceiveStr virtual
Sep 01, 1998  V2.50 Ignore CancelDnsLookup exception during destroy
Sep 29, 1998  V2.51 In InternalClose, protect AssignDefaultValue with
              try/except because SessionClosed event handler may have destroyed
              the component.
Oct 11, 1998  V2.52 Changed Shutdown(2) to Shutdown(1) in Internal Close to
              prevent data lost on send. You may have to call Shutdown(2) in
              your own code before calling Close to have the same behaviour as
              before.
              Changed argument type for ASyncReceive and passed 0 from FD_CLOSE
              message handler.
Oct 28, 1998  V2.53 Made WSocketLoadWinsock and WSocketUnloadWinsock public.
Nov 11, 1998  V2.54 Added OnDisplay event for debugging purpose
Nov 16, 1998  V2.55 Ignore WSANOTINITIALIZED error calling CloseSocket. This
              occurs when using TWSocket from a DLL and the finalization
              section is called before destroying TWSocket components (this is
              a program logic error).
              Made some properties and methods protected instead of private.
              Made some methods virtual.
              Added an Error argument to InternalClose.
              Added DoRecv virtual function.
              Added WSocketResolvePort
              Added WSocketResolveProto
              Deferred port and protocol resolution until really needed
              Transformed Listen to procedure (in case of failure Listen
              always calls SocketError which triggers an exception or the
              OnError event).
Nov 22, 1998  V3.00 Skipped from V2.55 to V3.00. Socks support is major update!
              Added SOCKS5 support for TCP connection and simple usercode
              paswword authentication. Consider the socks code as beta !
              New properties: SocksServer, SocksPort, SocksUsercode,
              SocksPassword, FSocksAuthentication. New events: OnSocksError,
              OnSocksConnected, OnSocksAuthState.
              I used WinGate 2.1d to test my code. Unfortunately WinGate do
              not correctly handle user authentication, so the code here is
              just untested...
Dec 05, 1998  V3.10 Removed ReadLine feature using TWait component.
              Added new TCustomLineWSocket and TCustomSyncWSocket.
              Those modifications implies that the ReadLine functionnality is
              slightly changed. Notably, the end of line marker is now
              configurable and remains in the received line unless a timeout
              occurs or the buffer is too small.
Dec 10, 1998  V3.11 Added missing code to resolve port in the Listen method.
Dec 12, 1998  V3.12 Added write method for LocalPort property. Thanks to
              Jan Tomasek <xtomasej@feld.cvut.cz> for his code.
              Added background exception handling.
              Fixed a bug in TCustomLineWSocket.TriggerDataAvailable which was
              not calling the inherited function when it actually should.
              Added a check on multithreaded in WaitForClose to call the
              correct ProcessMessages procedure.
              Added SOCKS4 support (only tcp connect is supported).
Dec 28, 1998  V3.13 Changed WSocketResolveHost to check for invalid numeric
              IP addresses whitout trying to use them as hostnames.
Dec 30, 1998  V3.14 Changed SetPort to SetRemotePort to solve the SetPort
              syndrome with BCB. Also chnaged GetPort to be consistant.
Jan 12, 1999  V3.15 Introduced DoRecvFrom virtual function. This correct a bug
              introduced in V3.14 related to UDP and RecvFrom.
Jan 23, 1999  V3.16 Changed FRcvdFlag computation in DoRecv and DoRecvFrom
              because it caused problems with HTTP component and large blocks.
              Removed modification by Jan Tomasek in TriggerDataAvailable
Jan 30, 1999  V3.17 Added WSocketResolveIp function.
              Checked for tcp protocol before setting linger off in abort.
              Moved a lot of variables from private to protected sections.
              Removed check for Assigned(FOnDataSent) in WMASyncSelect.
Feb 03, 1999  V3.18 Removed useless units in the uses clause.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
粉嫩13p一区二区三区| 亚洲国产美国国产综合一区二区| 国产精品久线在线观看| 亚洲精品ww久久久久久p站| 五月天婷婷综合| 豆国产96在线|亚洲| 欧美色综合久久| 精品国产99国产精品| 青青草91视频| 精品日韩99亚洲| 91久久精品一区二区| 7777精品伊人久久久大香线蕉超级流畅| 美女一区二区三区| 亚洲国产日韩a在线播放性色| 精品一区二区三区免费播放| 成人18精品视频| 欧美一区二区三区公司| 国产精品美女久久久久久2018 | 男女性色大片免费观看一区二区 | 国产偷v国产偷v亚洲高清| 一区二区三区在线影院| 精品一区二区三区免费| 欧洲亚洲精品在线| 国产亚洲一区二区在线观看| 一区二区三区波多野结衣在线观看| 国内精品伊人久久久久av影院| 日本韩国精品一区二区在线观看| 精品99999| 天堂一区二区在线免费观看| 99国产精品99久久久久久| 精品久久久久久久久久久久久久久久久| 亚洲精选在线视频| 懂色av噜噜一区二区三区av| 欧美一区日韩一区| 亚洲五码中文字幕| eeuss影院一区二区三区| 久久综合久色欧美综合狠狠| 亚洲mv大片欧洲mv大片精品| 91丝袜美女网| 中文字幕+乱码+中文字幕一区| 伦理电影国产精品| 欧美剧情片在线观看| 亚洲欧美另类图片小说| 国产成人综合亚洲网站| 日韩三级伦理片妻子的秘密按摩| 亚洲午夜影视影院在线观看| 91免费视频网址| 中文字幕欧美国产| 国产在线乱码一区二区三区| 欧美一区二区视频在线观看| 婷婷国产在线综合| 欧美中文一区二区三区| 亚洲精品中文字幕在线观看| gogogo免费视频观看亚洲一| 欧美经典一区二区三区| 国产精品白丝jk白祙喷水网站| 日韩一二三区不卡| 秋霞午夜鲁丝一区二区老狼| 欧美色精品在线视频| 亚洲一区二区三区四区在线观看| 99久免费精品视频在线观看| 国产精品嫩草影院com| 成人理论电影网| 国产精品久久久久aaaa樱花| 成人精品视频一区二区三区尤物| 中文字幕精品综合| av高清不卡在线| 1024亚洲合集| 91久久精品一区二区三| 一区二区国产视频| 欧美日韩激情一区二区三区| 亚洲国产综合视频在线观看| 欧美日韩不卡在线| 日韩电影在线观看电影| 日韩久久久精品| 韩国毛片一区二区三区| 久久久久国产一区二区三区四区| 国产一区二区导航在线播放| 国产亚洲美州欧州综合国| 国产精品中文欧美| 中文字幕亚洲视频| 91国偷自产一区二区三区成为亚洲经典| 亚洲男同性视频| 欧美精三区欧美精三区 | 久久综合99re88久久爱| 国产精品1区二区.| 亚洲欧洲一区二区三区| 色狠狠av一区二区三区| 亚洲777理论| 欧美mv和日韩mv国产网站| 国产成人在线影院| 亚洲乱码国产乱码精品精可以看| 欧美日韩不卡在线| 国产一区在线视频| 亚洲欧美综合另类在线卡通| 日本福利一区二区| 麻豆国产精品官网| 中文字幕乱码久久午夜不卡| 色综合久久99| 亚洲成人777| 精品久久久久久久久久久院品网| 国产成人在线视频播放| 一区二区三区产品免费精品久久75| 欧美精品色一区二区三区| 国产呦萝稀缺另类资源| 亚洲男同1069视频| 日韩一区二区免费电影| 成人免费看视频| 午夜激情久久久| 国产亚洲精久久久久久| 欧美亚洲尤物久久| 激情六月婷婷久久| 亚洲激情图片小说视频| 日韩一区二区免费在线电影| 成人性生交大片免费看视频在线| 亚洲一区二区视频在线观看| 2023国产一二三区日本精品2022| 日本电影欧美片| 国产一区二区三区美女| 亚洲国产精品久久人人爱蜜臀| 久久综合色之久久综合| 欧洲亚洲精品在线| 国产九色精品成人porny| 亚洲一区二区三区中文字幕 | 成人av在线电影| 日韩精品一区第一页| 日本一区二区三区四区在线视频| 欧美日韩免费视频| www.欧美精品一二区| 日本中文在线一区| 亚洲免费观看高清完整版在线| 精品国产sm最大网站| 欧美日韩在线三级| 99久久精品免费看国产| 激情综合一区二区三区| 性做久久久久久久久| 中文字幕在线观看不卡视频| 欧美mv日韩mv| 欧美美女bb生活片| 一本色道a无线码一区v| 国产精品自拍三区| 麻豆freexxxx性91精品| 亚洲国产精品一区二区尤物区| 国产精品嫩草99a| 久久久蜜桃精品| 日韩一区二区在线播放| 在线精品视频免费播放| 成人免费高清视频在线观看| 国产呦精品一区二区三区网站| 视频一区二区三区在线| 一区二区免费看| 亚洲人一二三区| 国产精品久久久久永久免费观看| 日韩视频一区二区在线观看| 欧美视频一二三区| 91久久精品午夜一区二区| k8久久久一区二区三区| 国产成人免费av在线| 国产一二三精品| 久久97超碰色| 久久国产生活片100| 免费观看在线综合| 视频一区欧美日韩| 天天做天天摸天天爽国产一区| 一区二区在线观看不卡| 亚洲视频一二三区| 亚洲欧美国产三级| 日韩久久一区二区| 亚洲欧美综合色| 日韩毛片视频在线看| 亚洲欧美在线另类| 国产精品久99| 亚洲日本在线天堂| 亚洲欧美电影一区二区| 伊人色综合久久天天| 亚洲男女毛片无遮挡| 亚洲精品日韩综合观看成人91| 亚洲人成精品久久久久久| 亚洲三级电影网站| 一区二区日韩电影| 亚洲gay无套男同| 日本午夜一本久久久综合| 青青草国产精品97视觉盛宴 | 精品国产乱码久久久久久影片| 日韩精品一区二区三区蜜臀| 日韩欧美激情四射| 久久综合给合久久狠狠狠97色69| 欧美精品一区视频| 日本一区二区在线不卡| 国产精品美女视频| 亚洲欧美另类久久久精品| 亚洲精品亚洲人成人网| 亚洲第一成人在线| 美女性感视频久久| 国产精品77777| 91免费在线视频观看| 欧美欧美午夜aⅴ在线观看| 在线91免费看| 久久综合色8888| 国产精品久久久久久久久久免费看|