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

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

?? tncli1.pas

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

Program:      TNCLIENT.PAS
Object:       Delphi application which is a basic telnet program demonstrating
              WSocket, TnCnx, TnEmulVT, EmulVT components.
Author:       Fran鏾is PIETTE
Creation:     July 22, 1997
Version:      2.05
EMail:        francois.piette@pophost.eunet.be    francois.piette@rtfm.be
              http://www.rtfm.be/fpiette
Support:      Use the mailing list twsocket@rtfm.be See website for details.
Legal issues: Copyright (C) 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.

Updates:
Sep 05, 1997  Added display of windows socket version info.
Sep 23, 1997  Added local echo check box
Sep 24, 1997  V2.03 Added TnEmulVT1.RestoreOptions just before connecting
              Added interactive support for telnet echo option.
Sep 25, 1997  V2.04 Port to C++Builder
Dec 10, 1998  V2.05 Added IniFile to save config

 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
unit TnCli1;

interface

uses
  WinTypes, WinProcs, Messages, SysUtils, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, IniFiles, EmulVT, TnEmulVT, WSocket, Winsock;

type
  TTelnetForm = class(TForm)
    TnEmulVT1: TTnEmulVT;
    ConnectButton: TButton;
    Label1: TLabel;
    HostNameEdit: TEdit;
    Label2: TLabel;
    PortEdit: TEdit;
    DisconnectButton: TButton;
    StatusLabel: TLabel;
    SendButton: TButton;
    OptionsButton: TButton;
    LocalEchoCheckBox: TCheckBox;
    RequestLocalEchoOnButton: TButton;
    RequestLocalEchoOffButton: TButton;
    procedure ConnectButtonClick(Sender: TObject);
    procedure FormResize(Sender: TObject);
    procedure DisconnectButtonClick(Sender: TObject);
    procedure TnEmulVT1SessionConnected(Sender: TObject);
    procedure TnEmulVT1SessionClosed(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure SendButtonClick(Sender: TObject);
    procedure OptionsButtonClick(Sender: TObject);
    procedure FormShow(Sender: TObject);
    procedure LocalEchoCheckBoxClick(Sender: TObject);
    procedure TnEmulVT1LocalEcho(Sender: TObject);
    procedure RequestLocalEchoOnButtonClick(Sender: TObject);
    procedure RequestLocalEchoOffButtonClick(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
  private
    FIniFileName : String;
    FInitialized : Boolean;
  public
    { D閏larations publiques }
  end;

var
  TelnetForm: TTelnetForm;

implementation

{$R *.DFM}
const
    SectionWindow = 'Window';
    KeyTop        = 'Top';
    KeyLeft       = 'Left';
    KeyWidth      = 'Width';
    KeyHeight     = 'Height';
    SectionData   = 'Data';
    KeyHostName   = 'HostName';
    KeyPort       = 'Port';

{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TTelnetForm.FormCreate(Sender: TObject);
begin
    FIniFileName := LowerCase(ExtractFileName(Application.ExeName));
    FIniFileName := Copy(FIniFileName, 1, Length(FIniFileName) - 3) + 'ini';
    StatusLabel.Caption := 'Not connected';
    TnEmulVT1.RestoreOptions;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TTelnetForm.FormShow(Sender: TObject);
var
    WinsockData : TWSADATA;
    IniFile     : TIniFile;
begin
    if not FInitialized then begin
        FInitialized := TRUE;
        IniFile := TIniFile.Create(FIniFileName);
        HostNameEdit.Text  := IniFile.ReadString(SectionData, KeyHostName,
                                                 'localhost');
        PortEdit.Text      := IniFile.ReadString(SectionData, KeyPort,
                                                 'telnet');

        Width  := IniFile.ReadInteger(SectionWindow, KeyWidth,  Width);
        Height := IniFile.ReadInteger(SectionWindow, KeyHeight, Height);
        Top    := IniFile.ReadInteger(SectionWindow, KeyTop,    (Screen.Height - Height) div 2);
        Left   := IniFile.ReadInteger(SectionWindow, KeyLeft,   (Screen.Width - Width) div 2);

        IniFile.Free;
        TnEmulVT1.Clear;
        WinsockData := WinsockInfo;
        StatusLabel.Caption := StrPas(WinsockData.szDescription);
    end;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TTelnetForm.FormClose(Sender: TObject; var Action: TCloseAction);
var
    IniFile : TIniFile;
begin
    IniFile := TIniFile.Create(FIniFileName);
    IniFile.WriteString(SectionData, KeyHostName,  HostNameEdit.Text);
    IniFile.WriteString(SectionData, KeyPort,      PortEdit.Text);
    IniFile.WriteInteger(SectionWindow, KeyTop,    Top);
    IniFile.WriteInteger(SectionWindow, KeyLeft,   Left);
    IniFile.WriteInteger(SectionWindow, KeyWidth,  Width);
    IniFile.WriteInteger(SectionWindow, KeyHeight, Height);
    IniFile.Free;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TTelnetForm.ConnectButtonClick(Sender: TObject);
begin
    StatusLabel.Caption := 'Connecting';
    Refresh;
    ConnectButton.Enabled := FALSE;
    try
        TnEmulVT1.Disconnect;
        TnEmulVT1.Port     := PortEdit.Text;
        TnEmulVT1.HostName := HostNameEdit.Text;
        TnEmulVT1.RestoreOptions;
        { This can take quite a long time when hostname is unknown and }
        { if DNS feature is enabled (2 or 3 minutes !)                 }
        TnEmulVT1.Connect;
    except
        ConnectButton.Enabled := TRUE;
        raise;
    end;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TTelnetForm.DisconnectButtonClick(Sender: TObject);
begin
    TnEmulVT1.Disconnect;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TTelnetForm.TnEmulVT1SessionConnected(Sender: TObject);
begin
    DisconnectButton.Enabled := TRUE;
    StatusLabel.Caption      := 'Connected';
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TTelnetForm.TnEmulVT1SessionClosed(Sender: TObject);
begin
    DisconnectButton.Enabled := FALSE;
    ConnectButton.Enabled    := TRUE;
    StatusLabel.Caption      := 'Not connected';
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TTelnetForm.FormResize(Sender: TObject);
begin
    TnEmulVT1.Width  := ClientWidth;
    TnEmulVT1.Height := ClientHeight - TnEmulVT1.Top;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TTelnetForm.SendButtonClick(Sender: TObject);
begin
    TnEmulVT1.SendStr('Hello world !' + #13#10);
    ActiveControl := TnEmulVT1;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TTelnetForm.OptionsButtonClick(Sender: TObject);
begin
    TnEmulVT1.HostName := HostNameEdit.Text;
    TnEmulVT1.EditOptions;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TTelnetForm.TnEmulVT1LocalEcho(Sender: TObject);
begin
    if TnEmulVT1.GetLocalEcho then
        StatusLabel.Caption := 'Remote will not echo'
    else
        StatusLabel.Caption := 'Remote will echo';
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TTelnetForm.LocalEchoCheckBoxClick(Sender: TObject);
begin
    TnEmulVT1.LocalEcho := LocalEchoCheckBox.Checked;
    ActiveControl       := TnEmulVT1;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TTelnetForm.RequestLocalEchoOnButtonClick(Sender: TObject);
begin
    TnEmulVT1.RequestLocalEcho(TRUE);
    ActiveControl       := TnEmulVT1;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TTelnetForm.RequestLocalEchoOffButtonClick(Sender: TObject);
begin
    TnEmulVT1.RequestLocalEcho(FALSE);
    ActiveControl       := TnEmulVT1;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}


end.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国内不卡的二区三区中文字幕| 久久婷婷色综合| 国产精品系列在线观看| 五月婷婷激情综合网| 亚洲精品日日夜夜| 亚洲免费视频成人| 国产精品美女久久久久久久久久久| 精品国内二区三区| 久久欧美中文字幕| 国产精品热久久久久夜色精品三区| 国产亚洲人成网站| 国产精品美女视频| 亚洲综合另类小说| 免费人成黄页网站在线一区二区| 日韩成人午夜精品| 国产在线精品国自产拍免费| 国产成人99久久亚洲综合精品| 粉嫩嫩av羞羞动漫久久久| gogogo免费视频观看亚洲一| 91片黄在线观看| 欧美区视频在线观看| 日韩精品一区二区三区在线播放 | 欧美日韩精品电影| 日韩欧美国产综合| 国产精品无人区| 亚洲精品久久久蜜桃| 午夜精品福利在线| 国产成人在线观看免费网站| 91国在线观看| xfplay精品久久| 亚洲欧美日韩一区二区| 日本视频免费一区| 成人精品免费看| 欧美精品乱码久久久久久按摩| xvideos.蜜桃一区二区| 亚洲欧美激情小说另类| 另类小说视频一区二区| 91丨国产丨九色丨pron| 欧美mv日韩mv| 亚洲三级在线观看| 韩国三级电影一区二区| 大美女一区二区三区| 色94色欧美sute亚洲线路一久 | 国产精品免费av| 亚洲欧美日韩国产综合在线| 五月激情综合网| 国产成人精品一区二| 欧美性生交片4| 国产日韩一级二级三级| 男女激情视频一区| 欧美视频中文一区二区三区在线观看 | 麻豆91在线观看| 日本高清成人免费播放| 国产日产亚洲精品系列| 日韩精品每日更新| 在线观看欧美精品| 国产午夜精品一区二区三区嫩草| 石原莉奈一区二区三区在线观看| 风间由美一区二区av101| 精品成a人在线观看| 日韩av中文在线观看| 色国产综合视频| 国产精品剧情在线亚洲| 黄色精品一二区| 欧美一区二区三区视频| 亚洲第一激情av| 91在线免费看| 国产精品家庭影院| 国产福利精品一区二区| 久久一区二区视频| 国产最新精品精品你懂的| 欧美一区二区三区视频免费| 亚洲成人午夜影院| 欧美三区在线视频| 日韩国产欧美在线观看| 欧美怡红院视频| 亚洲一区二区三区在线播放| 色哟哟一区二区| 亚洲最大色网站| 欧美亚洲禁片免费| 午夜在线电影亚洲一区| 欧美三级三级三级爽爽爽| 亚洲一级片在线观看| 欧美亚洲一区三区| 日韩电影在线免费观看| 欧美一区二区三区免费视频| 麻豆一区二区99久久久久| 欧美一区二区三区在线观看| 久久99精品视频| 久久久久久久综合狠狠综合| 国产成人av一区二区三区在线观看| 久久久精品黄色| 日本韩国一区二区三区视频| 一区二区久久久久| 91成人在线精品| 日韩不卡免费视频| 国产亚洲视频系列| 一本大道久久a久久综合婷婷| 午夜一区二区三区视频| 久久久一区二区三区| 成人精品视频一区二区三区尤物| 国产精品盗摄一区二区三区| 在线一区二区三区四区五区| 日本午夜一区二区| 欧美国产日韩亚洲一区| 欧美综合一区二区| 激情深爱一区二区| 亚洲视频免费看| 日韩亚洲欧美成人一区| 成人高清免费观看| 午夜精品福利久久久| 久久精品欧美一区二区三区不卡| 99re这里只有精品视频首页| 午夜精品久久久久久久| 欧美激情在线看| 91精品国产色综合久久不卡电影| 国产一区免费电影| 亚洲一区成人在线| 国产精品萝li| 欧美v日韩v国产v| 日本精品视频一区二区三区| 九一久久久久久| 亚洲影院在线观看| 国产精品伦理在线| 日韩女优制服丝袜电影| 色婷婷综合五月| 国产成人在线看| 久久国产剧场电影| 亚洲成在线观看| 亚洲欧美一区二区不卡| 久久精品一区八戒影视| 日韩丝袜美女视频| 欧美日韩精品电影| 在线观看中文字幕不卡| av亚洲精华国产精华精华| 精品在线观看免费| 青青草国产精品97视觉盛宴 | 欧美日韩精品三区| 91玉足脚交白嫩脚丫在线播放| 激情五月婷婷综合| 久久99精品国产.久久久久| 亚洲成av人片| 亚洲图片有声小说| 亚洲图片一区二区| 亚洲成人一区二区在线观看| 亚洲天堂精品在线观看| 最新日韩av在线| 日本一二三不卡| 国产日本一区二区| 久久久午夜精品理论片中文字幕| 日韩限制级电影在线观看| 欧美二区在线观看| 欧美夫妻性生活| 91麻豆精品国产91久久久更新时间| 色综合天天狠狠| 色综合 综合色| 色老汉一区二区三区| 91污在线观看| 在线观看亚洲一区| 欧美三级视频在线播放| 欧美高清激情brazzers| 欧美群妇大交群的观看方式| 7777女厕盗摄久久久| 欧美一二三四在线| 久久久精品综合| 中国av一区二区三区| 久久久91精品国产一区二区精品| 久久久久久久电影| 国产精品久久久久久亚洲伦| 日韩美女精品在线| 亚洲成人午夜电影| 日韩极品在线观看| 国产一区二区视频在线| 成人app在线观看| 色婷婷综合久色| 日韩一级免费一区| 久久久亚洲高清| 一区二区三区美女| 免费看日韩精品| 丰满放荡岳乱妇91ww| 欧美性大战久久久久久久 | 精品一区二区免费看| 成人小视频在线| 欧美日韩国产综合一区二区三区| 日韩精品一区二区三区三区免费| 久久精品一区八戒影视| 亚洲午夜国产一区99re久久| 久久精品72免费观看| 成人动漫一区二区三区| 欧美人与性动xxxx| 国产精品理伦片| 美女诱惑一区二区| 91蝌蚪porny九色| 精品日本一线二线三线不卡| 亚洲国产精品二十页| 图片区小说区国产精品视频| 丁香婷婷综合色啪| 91精品国产一区二区三区| 国产精品亲子伦对白| 奇米综合一区二区三区精品视频|