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

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

?? wsocket.pas

?? MDB版本的LoginSvr跟SQL版本的傳奇源代碼。希望對大家能有用處
?? PAS
?? 第 1 頁 / 共 5 頁
字號:
{*_* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Author:       Fran鏾is PIETTE
Description:  TWSocket class encapsulate the Windows Socket paradigm
Creation:     April 1996
Version:      5.18
EMail:        francois.piette@overbyte.be  http://www.overbyte.be
              francois.piette@rtfm.be      http://www.rtfm.be/fpiette
Support:      Use the mailing list twsocket@elists.org
              Follow "support" link at http://www.overbyte.be for subscription.
Legal issues: Copyright (C) 1996-2005 by Fran鏾is PIETTE
              Rue de Grady 24, 4053 Embourg, Belgium. Fax: +32-4-365.74.56
              <francois.piette@overbyte.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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲另类在线视频| 国产乱码一区二区三区| 国产精品一区专区| 久久久久久久久蜜桃| 免费人成精品欧美精品| 欧美精三区欧美精三区| 日韩精品久久理论片| 7777精品伊人久久久大香线蕉| 亚洲制服欧美中文字幕中文字幕| 欧美日韩精品一二三区| 亚洲国产美国国产综合一区二区| 色综合久久久久网| 午夜电影久久久| 国产精品1024久久| 亚洲综合一区二区三区| 欧美无人高清视频在线观看| 亚洲色图欧美激情| 欧美性猛片xxxx免费看久爱| 亚洲精品视频一区| 91麻豆国产在线观看| 亚洲一级不卡视频| 91精品国产手机| 蜜臀av一区二区在线免费观看 | 欧美大片在线观看一区| 蜜桃一区二区三区在线| 精品成a人在线观看| 精品一区二区三区免费观看| 中文字幕av资源一区| 色综合久久久久综合体| 日韩不卡手机在线v区| 国产欧美精品一区二区色综合| 成人av午夜电影| 一区二区三区高清| 在线播放一区二区三区| 久久狠狠亚洲综合| 亚洲婷婷综合色高清在线| 在线视频国内一区二区| 国产伦理精品不卡| 亚洲视频免费在线观看| 欧美久久久久久久久中文字幕| 国产**成人网毛片九色| 亚洲国产日韩a在线播放性色| 日韩女同互慰一区二区| 在线看日本不卡| 麻豆一区二区三区| 亚洲色欲色欲www| 26uuu亚洲综合色| 一本色道a无线码一区v| 乱中年女人伦av一区二区| 一区二区三区在线视频观看| 欧美成人a∨高清免费观看| 97久久人人超碰| 久久国产精品72免费观看| 中文字幕一区二区三区在线观看| 欧美日韩中文字幕一区二区| 精品一区二区免费看| 中文字幕字幕中文在线中不卡视频| 日韩一区二区免费视频| 91社区在线播放| 久久99久久久欧美国产| 日本不卡的三区四区五区| 中文字幕免费观看一区| 欧美一级淫片007| 欧美精品v日韩精品v韩国精品v| 国产成人在线色| 蜜臂av日日欢夜夜爽一区| 亚洲1区2区3区4区| 亚洲三级在线免费| 久久免费看少妇高潮| 日韩免费一区二区三区在线播放| 色综合久久久网| 成人午夜免费视频| www.色精品| 国产一二精品视频| 国产精品一二三区在线| 美脚の诱脚舐め脚责91| 午夜电影网一区| 日本vs亚洲vs韩国一区三区二区 | 91精品国产综合久久福利软件| 91色九色蝌蚪| 成人一区在线观看| 国产一区二区三区免费播放| 日韩av二区在线播放| 亚洲另类中文字| 亚洲女人****多毛耸耸8| 久久九九久久九九| 欧美成人官网二区| 精品久久久久久久久久久久久久久久久| 欧美日韩免费在线视频| 欧美伊人久久大香线蕉综合69 | 五月婷婷欧美视频| 亚洲永久免费视频| 一区二区三区蜜桃网| 欧美精品一卡二卡| 亚洲欧美激情在线| 亚洲欧美色一区| 国产片一区二区| 国产欧美日本一区视频| 国产日韩视频一区二区三区| 国产欧美一区二区三区网站| 国产清纯白嫩初高生在线观看91| 久久婷婷一区二区三区| 精品粉嫩超白一线天av| 欧美精品一区二区三区四区 | 337p日本欧洲亚洲大胆精品| 国产91对白在线观看九色| 亚洲国产日韩在线一区模特| 国产欧美一区二区三区网站| 日韩一区二区精品| 在线免费av一区| 91在线观看免费视频| 久久精品国产**网站演员| 亚洲欧美国产三级| 国产精品人成在线观看免费| 日韩情涩欧美日韩视频| 欧美三级一区二区| 欧美日韩国产一二三| 欧洲精品一区二区三区在线观看| 色综合色综合色综合色综合色综合| 日韩电影一区二区三区四区| 午夜精品爽啪视频| 蜜桃视频第一区免费观看| 人人爽香蕉精品| 毛片av一区二区三区| 国产露脸91国语对白| 国产一区二区免费视频| 国产ts人妖一区二区| av高清久久久| 欧美不卡在线视频| 久久久91精品国产一区二区三区| 亚洲va中文字幕| 日韩av电影免费观看高清完整版在线观看| 亚洲精品在线三区| 欧美日韩一区国产| 麻豆91小视频| 欧美va亚洲va香蕉在线| 99国产精品久| 欧美一区二区三区在线电影 | 日韩久久一区二区| 亚洲成av人综合在线观看| 久久99精品久久只有精品| 成人小视频在线| 欧美电影影音先锋| 久久er99热精品一区二区| 欧美午夜一区二区三区免费大片| 狠狠狠色丁香婷婷综合激情| 91免费精品国自产拍在线不卡| 国产大陆a不卡| 欧美日韩大陆一区二区| 久久久99免费| 一二三四社区欧美黄| 日韩精品成人一区二区三区| 不卡的电影网站| 精品国产髙清在线看国产毛片 | 亚洲欧美另类图片小说| 麻豆精品一区二区综合av| 成人免费毛片app| 日韩一区国产二区欧美三区| 国产精品狼人久久影院观看方式| 日韩精品电影在线| 在线观看精品一区| 国产亚洲欧美在线| 久久99蜜桃精品| 色国产精品一区在线观看| 国产精品欧美一级免费| 久久精品国产精品青草| 91浏览器入口在线观看| 中文字幕欧美区| 国产麻豆精品theporn| 五月天精品一区二区三区| 欧美性受xxxx| 国产高清亚洲一区| 一区二区三区四区在线| 成人激情av网| 日韩欧美中文字幕一区| 日本欧美久久久久免费播放网| 制服丝袜激情欧洲亚洲| 91一区一区三区| 免费成人结看片| 国产一区二区三区四区在线观看| 国产成人精品免费在线| 亚洲精品第一国产综合野| 91免费国产在线| 亚洲成av人在线观看| 亚洲综合在线电影| 制服丝袜av成人在线看| 国产区在线观看成人精品| 欧美视频一区二区三区在线观看| 丝袜国产日韩另类美女| 欧美经典一区二区| 在线一区二区三区做爰视频网站| 日韩国产一二三区| 国产视频一区二区在线| 欧美三级在线视频| av在线不卡观看免费观看| 日本欧洲一区二区| 亚洲欧美在线视频观看| 精品99一区二区| 在线免费观看成人短视频| 成人永久免费视频|