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

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

?? concli2.dpr

?? 包含常用Internet協議TCP,UDP、HTTP、FTP、Telnet等
?? DPR
字號:
{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Author:       Fran鏾is PIETTE
Description:  ConCli2 shows how to use TWSocket in a console mode application.
              For Delphi 2, 3 or 4 only. ConCli2 use a thread to make the
              socket run in the program background while the foreground is
              busy with the user interface (for simplicity here we just wait
              for the user to hit the enter key).
EMail:        francois.piette@pophost.eunet.be  http://www.rtfm.be/fpiette
Creation:     Nov 20, 1997
Version:      1.01
WebSite:      http://www.rtfm.be/fpiette/indexuk.htm
Support:      Use the mailing list twsocket@rtfm.be See website for details.
Legal issues: Copyright (C) 1997, 1998 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.

Updates:
Dec 05, 1998 V1.01 Don't use TWait object anymore.


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
{$APPTYPE CONSOLE}
program ConCli2;

uses
    Windows, Classes, WSocket;

const
    ServerHostName = 'localhost';
    ServerPort     = 'telnet';

type
    TWSocketThread = class(TThread)
    protected
        FWSocket : TWsocket;
        FRcvBuf  : array [0..1023] of char;
        procedure Execute; override;
        procedure   FWSocketDataAvailable(Sender : TObject; Error : Word);
        procedure   FWSocketSessionConnected(Sender : TObject; Error : Word);
        procedure   FWSocketSessionClosed(Sender : TObject; Error : Word);
    public
        constructor Create; virtual;
    end;

{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
constructor TWSocketThread.Create;
begin
    inherited Create(TRUE);
    FreeOnTerminate := TRUE;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TWSocketThread.Execute;
begin
    // Let's the user know what we are doing
    Writeln('Connecting to server ''', ServerHostName,
            ''' on port ''', ServerPort, '''');

    // Create the TWSocket we will use to communicate with the server
    FWSocket                    := TWsocket.Create(nil);

    // Assign the event handler for the TWSocket events we care of
    FWSocket.OnDataAvailable    := FWSocketDataAvailable;
    FWSocket.OnSessionClosed    := FWSocketSessionClosed;
    FWSocket.OnSessionConnected := FWSocketSessionConnected;

    // Connect to the server
    FWSocket.Addr     := ServerHostName;
    FWSocket.Port     := ServerPort;
    FWSocket.Proto    := 'tcp';
    FWSocket.Connect;

    // Let the TWSocket component makes his work
    FWSocket.MessageLoop;

    // We are done, destroy the objects we created
    FWSocket.Destroy;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
{ This event handler is called by the TWSocket when some data has been      }
{ received by the lower level.                                              }
procedure TWSocketThread.FWSocketDataAvailable(Sender : TObject; Error : Word);
var
    Len : Integer;
begin
    // Get the received data
    Len := FWSocket.Receive(@FRcvBuf[0], SizeOf(FRcvBuf) - 1);
    if Len <= 0 then
        Exit;

    // Add a terminating nul byte to allow display using standard I/O
    FRcvBuf[Len] := #0;
    Write(FRcvBuf);
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
{ This event handler is called by TWSocket when the connection is           }
{ established with the remote host                                          }
procedure TWSocketThread.FWSocketSessionConnected(Sender : TObject; Error : Word);
begin
    Writeln('Connected');
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
{ This event handler is called by TWSocket when the connection is broken    }
procedure TWSocketThread.FWSocketSessionClosed(Sender : TObject; Error : Word);
begin
    Writeln('Server has diconnected');
    FWSocket.Close;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
{ This is the main program.                                                 }
var
    WSocketThread : TWSocketThread;
begin
    Writeln('Hit enter to stop the program');
    Writeln;
    // Create the socket working thread (suspended)
    WSocketThread := TWSocketThread.Create;

    // Start the thread
    WSocketThread.Resume;

    // The main thread continue here. Process user request here.
    Readln;

    // We are done, quit the program
    Writeln('Ok.');
end.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一区二区三区99| 夜夜嗨av一区二区三区网页| 欧美一区二区啪啪| 欧美日韩精品一二三区| 777午夜精品视频在线播放| 欧美视频一区二区三区在线观看| 欧美在线视频不卡| 欧美日韩亚洲综合在线 | 久久久www成人免费无遮挡大片| 欧美一二三四区在线| 欧美电影免费观看高清完整版| 日韩欧美的一区| 久久午夜国产精品| 国产精品护士白丝一区av| 中文字幕佐山爱一区二区免费| 一区二区不卡在线播放| 婷婷亚洲久悠悠色悠在线播放 | 丰满少妇久久久久久久| 成人高清av在线| 色婷婷av久久久久久久| 欧美另类高清zo欧美| 精品少妇一区二区三区免费观看| 国产欧美精品一区二区色综合| 亚洲欧洲一区二区在线播放| 一区二区三区美女视频| 老司机精品视频在线| 不卡视频在线看| 欧美特级限制片免费在线观看| 3d动漫精品啪啪1区2区免费| 91精品国产综合久久香蕉的特点 | 国产成人小视频| 色综合天天综合| 日韩一区二区在线看| 欧美国产视频在线| 日本成人在线电影网| www.亚洲在线| 日韩三级在线观看| 一区二区三区资源| 国产成人免费视频网站高清观看视频| 色综合久久综合中文综合网| 日韩一级视频免费观看在线| 亚洲女同一区二区| 狠狠网亚洲精品| 欧美性做爰猛烈叫床潮| 国产精品欧美极品| 精品一区二区免费看| 在线视频一区二区免费| 国产精品天美传媒沈樵| 蜜臀av性久久久久蜜臀aⅴ | av欧美精品.com| 精品电影一区二区三区| 亚洲午夜私人影院| 91玉足脚交白嫩脚丫在线播放| 2020国产精品| 视频一区二区三区在线| 日本韩国欧美一区二区三区| 欧美国产激情二区三区| 激情文学综合插| 7777精品伊人久久久大香线蕉| 最新久久zyz资源站| 国产成人av福利| 精品国产伦一区二区三区免费| 无吗不卡中文字幕| 日本精品一区二区三区高清 | 日韩亚洲欧美综合| 性欧美疯狂xxxxbbbb| 色综合久久久久综合体桃花网| 中文字幕av资源一区| 国产一区二区免费在线| 欧美成人高清电影在线| 另类小说一区二区三区| 日韩女优毛片在线| 日韩国产成人精品| 91精品黄色片免费大全| 青青草成人在线观看| 制服丝袜激情欧洲亚洲| 日本午夜精品一区二区三区电影| 欧美日韩国产a| 亚洲高清久久久| 欧美日韩成人激情| 五月天一区二区三区| 91麻豆精品国产91久久久 | 日韩精品久久久久久| 91精品在线观看入口| 美女网站在线免费欧美精品| 欧美成人精品二区三区99精品| 久久成人av少妇免费| 国产亚洲欧美在线| 成人免费的视频| 亚洲人123区| 在线不卡中文字幕播放| 免费高清在线一区| 久久久国产一区二区三区四区小说 | 日韩va欧美va亚洲va久久| 欧美一区二区三区免费在线看| 老色鬼精品视频在线观看播放| 国产欧美一区视频| 色素色在线综合| 日韩激情一二三区| 欧美精品一区二区久久婷婷| 成人网在线播放| 亚洲一级在线观看| 欧美tk—视频vk| 99精品国产91久久久久久| 亚洲超碰97人人做人人爱| 欧美tickling挠脚心丨vk| 成人黄色av网站在线| 亚洲国产精品久久人人爱蜜臀| 欧美大片在线观看| 一本久久精品一区二区| 久久91精品久久久久久秒播| 中文字幕一区二区在线观看| 欧美日韩午夜在线| 国产91在线|亚洲| 舔着乳尖日韩一区| 国产精品不卡在线观看| 日韩一区二区三区视频在线观看| 粉嫩欧美一区二区三区高清影视| 亚洲一区二区三区不卡国产欧美| 久久蜜桃av一区二区天堂| 欧美午夜一区二区三区免费大片| 国产乱人伦偷精品视频不卡| 午夜精品国产更新| 中文字幕在线不卡国产视频| 欧美va亚洲va| 欧美丰满少妇xxxxx高潮对白 | 欧美一区二区三区思思人| av中文字幕一区| 韩国av一区二区三区四区 | 久久久精品综合| 国产不卡一区视频| 久久精品国产999大香线蕉| 亚洲美腿欧美偷拍| 国产精品乱码一区二三区小蝌蚪| 欧美一区二区日韩| 欧美日本国产视频| 色综合久久天天综合网| 波多野结衣91| 国产91高潮流白浆在线麻豆| 国产美女在线精品| 日本怡春院一区二区| 亚洲成av人影院| 一片黄亚洲嫩模| 亚洲一区二区三区四区五区中文 | 7777精品伊人久久久大香线蕉的| 日本韩国一区二区三区视频| 99久久er热在这里只有精品66| 国产乱人伦精品一区二区在线观看| 日韩精品91亚洲二区在线观看| 午夜精品在线看| 天堂蜜桃一区二区三区| 视频在线观看一区| 日本成人在线视频网站| 青青草91视频| 久久91精品久久久久久秒播| 久久国产综合精品| 国产一区二区三区四区在线观看 | 亚洲一区二区三区在线| 樱桃国产成人精品视频| 一区二区在线观看视频在线观看| 一区二区欧美在线观看| 亚洲成人动漫在线观看| 日韩二区在线观看| 国产在线精品一区在线观看麻豆| 国产麻豆精品在线观看| 国产黑丝在线一区二区三区| av毛片久久久久**hd| 欧美亚洲国产一卡| 日韩一级片在线观看| 国产网红主播福利一区二区| 久久日韩粉嫩一区二区三区| 国产精品拍天天在线| 亚洲综合久久久| 久久99久久精品| 成人动漫视频在线| 欧美剧在线免费观看网站| 欧美成人免费网站| 亚洲三级在线免费观看| 日韩av电影免费观看高清完整版在线观看| 精品一区二区三区视频| 91在线免费播放| 日韩欧美亚洲国产另类| 国产精品福利电影一区二区三区四区 | 中文字幕一区二区不卡| 午夜欧美电影在线观看| 国产麻豆精品视频| 欧美亚洲禁片免费| 欧美激情中文字幕一区二区| 亚洲观看高清完整版在线观看 | 亚洲综合在线五月| 黄色小说综合网站| 91精品91久久久中77777| 欧美大尺度电影在线| 亚洲色图制服诱惑| 精品伊人久久久久7777人| 在线国产电影不卡| 欧美激情一区二区三区蜜桃视频| 日本欧洲一区二区| 色噜噜夜夜夜综合网| 国产调教视频一区|