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

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

?? ftptst1.pas

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

Author:       Fran鏾is PIETTE
Creation:     Aug 1997
Version:      2.24
Object:       Demo for TFtpClient object (RFC 959 implementation)
              It is a graphical FTP client program
              Compatible with Delphi 1, 2, 3, 4 and 5
EMail:        francois.piette@pophost.eunet.be    francois.piette@swing.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.

              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.

Updates:
Sep 13, 97    Added directory functions. Added button to show how to makes
              several transferts in one session
Sep 27, 97    Change identifiers names to be more standard with other sources
Jan 10, 98    Saved edit boxes content to an IniFile, added FileSize, Quote
              and RestartGet commands
Jan 25, 1998  Completely rewritten for new component version (Asynchronous)
Feb 02, 1998  V2.17 Added a checkbox to run the synchronous or asynchronous
              version of the component methods.
Feb 15, 1998  V2.18 Removed useless wait unit from the use clause.
              Added display of winsock information at startup.
Feb 22, 1998  V2.19 Added Append and AppendFile commands
Aug 21, 1998  V2.20 Added a comment in OnProgress event handler to warn user
              about CPU usage.
Dec 22, 1998  V2.21 Replaced DisplayFlag by DysplayFileFlag.
Oct 19, 1999  V2.22 Correctly display Winsock version
Nov 24, 1999  V2.23 Added Restart Put and NoAutoResumeAt.
Jan 28, 2000  V2.24 Added code to OnProgress event handler to update screen
              only once per second. This solve problem on fast LAN.


 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
unit Ftptst1;

interface

uses
  SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  Forms, Dialogs, FtpCli, StdCtrls, IniFiles, ExtCtrls, WinSock, WSocket;

const
  FTPTstVersion = 224;

type
  TSyncCmd  = function : Boolean  of object;
  TAsyncCmd = procedure of object;

  TFtpReceiveForm = class(TForm)
    DisplayMemo: TMemo;
    FtpClient1: TFtpClient;
    Panel1: TPanel;
    ExitButton: TButton;
    OpenAsyncButton: TButton;
    QuitAsyncButton: TButton;
    CwdAsyncButton: TButton;
    UserAsyncButton: TButton;
    PassAsyncButton: TButton;
    ConnectAsyncButton: TButton;
    GetAsyncButton: TButton;
    ReceiveAsyncButton: TButton;
    AbortAsyncButton: TButton;
    DirAsyncButton: TButton;
    DirectoryAsyncButton: TButton;
    LsAsyncButton: TButton;
    ListAsyncButton: TButton;
    SystAsyncButton: TButton;
    SystemAsyncButton: TButton;
    FileSizeAsyncButton: TButton;
    SizeAsyncButton: TButton;
    MkdAsyncButton: TButton;
    MkdirAsyncButton: TButton;
    RmdAsyncButton: TButton;
    RmdirAsyncButton: TButton;
    RenAsyncButton: TButton;
    RenameAsyncButton: TButton;
    DeleAsyncButton: TButton;
    DeleteAsyncButton: TButton;
    PwdAsyncButton: TButton;
    QuoteAsyncButton: TButton;
    DoQuoteAsyncButton: TButton;
    PutAsyncButton: TButton;
    TransmitAsyncButton: TButton;
    TypeSetAsyncButton: TButton;
    RestGetAsyncButton: TButton;
    RestartGetAsyncButton: TButton;
    CDupAsyncButton: TButton;
    Panel2: TPanel;
    Label1: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Label5: TLabel;
    Label2: TLabel;
    Label6: TLabel;
    HostNameEdit: TEdit;
    HostFileEdit: TEdit;
    UserNameEdit: TEdit;
    PassWordEdit: TEdit;
    cbDisplay: TCheckBox;
    LocalFileEdit: TEdit;
    cbBinary: TCheckBox;
    HostDirEdit: TEdit;
    PortEdit: TEdit;
    InfoLabel: TLabel;
    StateLabel: TLabel;
    ClearButton: TButton;
    SyncCheckBox: TCheckBox;
    AppendFileAsyncButton: TButton;
    AppendAsyncButton: TButton;
    PassiveCheckBox: TCheckBox;
    Button1: TButton;
    RestPutAsyncButton: TButton;
    RestartPutAsyncButton: TButton;
    ResumeAtEdit: TEdit;
    Label7: TLabel;
    NoAutoResumeAtCheckBox: TCheckBox;
    procedure ExitButtonClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure Display(Sender: TObject; var Msg : String);
    procedure FtpClient1Progress(Sender: TObject; Count: Longint;
      var Abort: Boolean);
    procedure FormShow(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure OpenAsyncButtonClick(Sender: TObject);
    procedure FtpClient1RequestDone(Sender: TObject; RqType: TFtpRequest;
      Error: Word);
    procedure FtpClient1SessionConnected(Sender: TObject; Error: Word);
    procedure FtpClient1SessionClosed(Sender: TObject; Error: Word);
    procedure QuitAsyncButtonClick(Sender: TObject);
    procedure CwdAsyncButtonClick(Sender: TObject);
    procedure UserAsyncButtonClick(Sender: TObject);
    procedure PassAsyncButtonClick(Sender: TObject);
    procedure ConnectAsyncButtonClick(Sender: TObject);
    procedure FtpClient1StateChange(Sender: TObject);
    procedure GetAsyncButtonClick(Sender: TObject);
    procedure ReceiveAsyncButtonClick(Sender: TObject);
    procedure AbortAsyncButtonClick(Sender: TObject);
    procedure DirAsyncButtonClick(Sender: TObject);
    procedure DirectoryAsyncButtonClick(Sender: TObject);
    procedure LsAsyncButtonClick(Sender: TObject);
    procedure ListAsyncButtonClick(Sender: TObject);
    procedure SystAsyncButtonClick(Sender: TObject);
    procedure SystemAsyncButtonClick(Sender: TObject);
    procedure FileSizeAsyncButtonClick(Sender: TObject);
    procedure SizeAsyncButtonClick(Sender: TObject);
    procedure MkdAsyncButtonClick(Sender: TObject);
    procedure MkdirAsyncButtonClick(Sender: TObject);
    procedure RmdAsyncButtonClick(Sender: TObject);
    procedure RmdirAsyncButtonClick(Sender: TObject);
    procedure RenAsyncButtonClick(Sender: TObject);
    procedure RenameAsyncButtonClick(Sender: TObject);
    procedure DeleAsyncButtonClick(Sender: TObject);
    procedure DeleteAsyncButtonClick(Sender: TObject);
    procedure PwdAsyncButtonClick(Sender: TObject);
    procedure QuoteAsyncButtonClick(Sender: TObject);
    procedure DoQuoteAsyncButtonClick(Sender: TObject);
    procedure PutAsyncButtonClick(Sender: TObject);
    procedure TransmitAsyncButtonClick(Sender: TObject);
    procedure TypeSetAsyncButtonClick(Sender: TObject);
    procedure RestGetAsyncButtonClick(Sender: TObject);
    procedure RestartGetAsyncButtonClick(Sender: TObject);
    procedure CDupAsyncButtonClick(Sender: TObject);
    procedure ClearButtonClick(Sender: TObject);
    procedure AppendAsyncButtonClick(Sender: TObject);
    procedure AppendFileAsyncButtonClick(Sender: TObject);
    procedure Button1Click(Sender: TObject);
    procedure RestPutAsyncButtonClick(Sender: TObject);
    procedure RestartPutAsyncButtonClick(Sender: TObject);
  private
    FIniFileName   : String;
    FInitialized   : Boolean;
    FLastProgress  : DWORD;
    FProgressCount : LongInt;
    procedure DisplayFile(FileName : String);
    procedure ExecuteCmd(SyncCmd : TSyncCmd; ASyncCmd : TAsyncCmd);
  public
  end;

const
  TEMP_FILE_NAME = 'FTPDIR.TXT';

var
  FtpReceiveForm: TFtpReceiveForm;

implementation

uses
  FtpTst2;

{$R *.DFM}
const
    SectionData   = 'Data';
    KeyHostName   = 'HostName';
    KeyUserName   = 'UserName';
    KeyPassWord   = 'PassWord';
    KeyHostDir    = 'HostDir';
    KeyPort       = 'Port';
    KeyHostFile   = 'HostFile';
    KeyLocalFile  = 'LocalFile';
    KeyResumeAt   = 'ResumeAt';
    SectionWindow = 'Window';
    KeyTop        = 'Top';
    KeyLeft       = 'Left';
    KeyWidth      = 'Width';
    KeyHeight     = 'Height';


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
{$IFNDEF VER80 }
{ To debug event driven programs, it is often handy to just use writeln to  }
{ write debug messages to the console. To get a console, just ask the       }
{ linker to build a console mode application. Then you'll get the default   }
{ console. The function below will make it the size you like...             }
procedure BigConsole(nCols, nLines : Integer);
var
    sc : TCoord;
    N  : DWord;
begin
    if not IsConsole then
        Exit;
    sc.x := nCols;
    sc.y := nLines;
    SetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE), sc);
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
                            BACKGROUND_BLUE or BACKGROUND_GREEN or
                            BACKGROUND_RED or BACKGROUND_INTENSITY);
    sc.x := 0;
    sc.y := 0;
    FillConsoleOutputAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
                               BACKGROUND_BLUE or BACKGROUND_GREEN or
                               BACKGROUND_RED or BACKGROUND_INTENSITY,
                               nCols * nLines, sc, N);
end;
{$ENDIF}


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TFtpReceiveForm.FormCreate(Sender: TObject);
begin
{$IFNDEF VER80}
    BigConsole(80, 100);
{$ENDIF}
    DisplayMemo.Clear;
    InfoLabel.Caption  := '';
    StateLabel.Caption := '';
    FIniFileName := LowerCase(ExtractFileName(Application.ExeName));
    FIniFileName := Copy(FIniFileName, 1, Length(FIniFileName) - 3) + 'ini';
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TFtpReceiveForm.FormShow(Sender: TObject);
var
    IniFile : TIniFile;
    Data    : TWSAData;
begin
    if not FInitialized then begin
        FInitialized := TRUE;
        IniFile := TIniFile.Create(FIniFileName);
        HostNameEdit.Text  := IniFile.ReadString(SectionData, KeyHostName,
                                                 'ftp.simtel.net');
        PortEdit.Text      := IniFile.ReadString(SectionData, KeyPort,
                                                 'ftp');
        UserNameEdit.Text  := IniFile.ReadString(SectionData, KeyUserName,
                                                 'anonymous');
        PassWordEdit.Text  := IniFile.ReadString(SectionData, KeyPassWord,
                                                 'your.name@your.company.com');
        HostDirEdit.Text   := IniFile.ReadString(SectionData, KeyHostDir,
                                                 '/pub/simtelnet');
        HostFileEdit.Text  := IniFile.ReadString(SectionData, KeyHostFile,
                                                 'index.html');
        LocalFileEdit.Text := IniFile.ReadString(SectionData, KeyLocalFile,
                                                 'c:\temp\index.htm');
        ResumeAtEdit.Text  := IniFile.ReadString(SectionData, KeyResumeAt,
                                                 '0');

        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;

        { Display winsock info }
        Data := WinsockInfo;
        DisplayMemo.Lines.Add('Winsock version ' +
                              IntToStr(LOBYTE(Data.wHighVersion)) + '.' +
                              IntToStr(HIBYTE(Data.wHighVersion)));
        DisplayMemo.Lines.Add(StrPas(Data.szDescription));
        DisplayMemo.Lines.Add(StrPas(Data.szSystemStatus));
    end;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TFtpReceiveForm.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.WriteString(SectionData, KeyUserName,  UserNameEdit.Text);
    IniFile.WriteString(SectionData, KeyPassWord,  PassWordEdit.Text);
    IniFile.WriteString(SectionData, KeyHostDir,   HostDirEdit.Text);
    IniFile.WriteString(SectionData, KeyHostFile,  HostFileEdit.Text);
    IniFile.WriteString(SectionData, KeyLocalFile, LocalFileEdit.Text);
    IniFile.WriteString(SectionData, KeyResumeAt,  ResumeAtEdit.Text);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美国十次综合导航| 欧美性生活影院| 欧美丝袜第三区| 久久综合狠狠综合| 亚洲亚洲精品在线观看| 国产91清纯白嫩初高中在线观看| 欧美视频精品在线观看| 中文字幕亚洲在| 精品一区二区精品| 91麻豆精品国产自产在线观看一区 | 久久99久久精品| 在线精品视频免费播放| 亚洲天堂中文字幕| 国产一级精品在线| 亚洲精品一区二区三区在线观看 | 一区二区三区四区在线免费观看| 久久99国产精品久久99果冻传媒| 精品污污网站免费看| 亚洲精品亚洲人成人网在线播放| 国产精品一区在线| 精品日韩成人av| 日韩国产欧美视频| 欧美日韩国产经典色站一区二区三区| 国产精品久久综合| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 激情小说欧美图片| 911国产精品| 亚洲成人自拍偷拍| 欧美日韩国产精选| 亚洲综合免费观看高清完整版 | 成人精品国产一区二区4080| 久久久久高清精品| 国产又粗又猛又爽又黄91精品| 6080日韩午夜伦伦午夜伦| 亚洲一区二区偷拍精品| 欧美三级电影网站| 亚洲国产精品视频| 911精品国产一区二区在线| 欧美aⅴ一区二区三区视频| 在线综合亚洲欧美在线视频| 久久精品国产免费看久久精品| 91精品国产全国免费观看| 免费成人av资源网| 日韩欧美电影在线| 国产酒店精品激情| 国产精品水嫩水嫩| 91视视频在线观看入口直接观看www | 在线电影国产精品| 伦理电影国产精品| 久久影院午夜片一区| 成人97人人超碰人人99| 一区二区三区日本| 日韩欧美中文字幕精品| 国产成人综合网| 亚洲日本一区二区| 欧美精品黑人性xxxx| 日本成人在线一区| 亚洲国产高清在线| 欧美专区在线观看一区| 日韩国产精品大片| 2020国产精品久久精品美国| 高清成人免费视频| 亚洲精品视频一区| 日韩写真欧美这视频| 东方欧美亚洲色图在线| 亚洲综合在线视频| 欧美成人一区二区三区| 日本韩国欧美在线| 国产乱子轮精品视频| 亚洲综合激情网| 日韩欧美电影一二三| 91在线看国产| 久久精品国产**网站演员| 国产精品系列在线| 欧美精品九九99久久| 国产精品一区久久久久| 亚洲自拍都市欧美小说| 久久久久9999亚洲精品| 欧美日本在线一区| 成人a级免费电影| 精品亚洲欧美一区| 亚洲妇女屁股眼交7| 国产精品久久777777| 精品久久久久久久久久久院品网| 99九九99九九九视频精品| 青青国产91久久久久久| 国产精品久久久久9999吃药| 精品少妇一区二区三区视频免付费| 成a人片亚洲日本久久| 国产一二精品视频| 亚洲欧洲综合另类| 日韩欧美一级二级| 97久久精品人人做人人爽50路| 免费成人性网站| 亚洲线精品一区二区三区八戒| 中文字幕va一区二区三区| 欧美一区二区三区喷汁尤物| 在线观看91视频| 色呦呦一区二区三区| 99久久99久久精品免费看蜜桃 | 国产亚洲女人久久久久毛片| 91麻豆精品国产91久久久资源速度| 不卡一区二区中文字幕| 国产传媒久久文化传媒| 国产激情视频一区二区三区欧美| 另类成人小视频在线| 视频在线观看一区| 爽爽淫人综合网网站| 天堂久久一区二区三区| 五月婷婷激情综合| 成人av在线资源| 久久机这里只有精品| 午夜成人免费电影| 爽好久久久欧美精品| 午夜久久久久久久久久一区二区| 亚洲国产日产av| 亚洲午夜三级在线| 午夜av一区二区三区| 免费高清在线视频一区·| 久久国产精品一区二区| 国产在线精品免费| 国产a区久久久| 97久久超碰国产精品| 色菇凉天天综合网| 91麻豆精品国产91久久久久久 | 成人一级片在线观看| eeuss影院一区二区三区 | 国产精品中文欧美| 成人性生交大片| 色婷婷久久久亚洲一区二区三区| 欧美亚州韩日在线看免费版国语版| 欧美性生活久久| 精品人伦一区二区色婷婷| 国产日韩精品一区二区三区在线| 欧美国产精品久久| 一级女性全黄久久生活片免费| 日韩专区欧美专区| 国产激情一区二区三区| 91麻豆精品一区二区三区| 欧美伊人精品成人久久综合97| 日韩一二三四区| 中文字幕色av一区二区三区| 亚洲国产精品一区二区www在线| 日本欧美加勒比视频| 国产成人免费视频一区| 在线亚洲精品福利网址导航| 日韩精品一区二区三区在线| 国产精品无遮挡| 日韩成人av影视| 91一区二区在线| 在线成人免费视频| 国产精品女主播av| 日日夜夜精品免费视频| 成人夜色视频网站在线观看| 欧美日韩一区久久| 国产精品久久久久永久免费观看 | 亚洲福利视频三区| 国产盗摄精品一区二区三区在线| 91福利在线播放| 久久综合九色综合久久久精品综合| 亚洲女厕所小便bbb| 国内不卡的二区三区中文字幕 | 久久奇米777| 亚洲va国产va欧美va观看| 成人一级视频在线观看| 日韩视频免费观看高清完整版| 亚洲蜜臀av乱码久久精品| 国产精品夜夜爽| 欧美一区二区福利视频| 一区二区高清在线| 成人午夜激情视频| 久久女同精品一区二区| 热久久一区二区| 欧美日韩精品系列| 一区二区三区资源| 99精品视频免费在线观看| 2020国产精品久久精品美国| 丝袜美腿亚洲色图| 欧美午夜精品免费| 日韩美女视频一区| 99久久久国产精品| 日本一区二区免费在线观看视频| 另类专区欧美蜜桃臀第一页| 在线播放国产精品二区一二区四区 | 欧美精品一区二区三区四区| 日韩福利电影在线观看| 欧美精品国产精品| 丝袜美腿一区二区三区| 欧美日韩一区高清| 亚洲国产成人av网| 欧美在线小视频| 亚洲尤物在线视频观看| 日本韩国精品一区二区在线观看| 1区2区3区国产精品| 成人av资源站| 亚洲欧美另类在线| 色综合一区二区三区| 亚洲欧美日本韩国| 欧美日韩黄视频| 青青草原综合久久大伊人精品优势|