🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.program
Article #1857

Re: ��ȣ�����λ�����ù�delphi 3.0 c/s���FTP

#1857
From: xufang.bbs
Date: Fri, 27 Mar 1998 00:00
49 lines
1944 bytes
�� �� Chipmunk (winter) �Ĵ������ᵽ: ��
: ProtocalState��ת����Ҫһ����ʱ�䣬�������Ϣ��Ӧ����OnProtocalStateChange()
: ���ж���ֵ������ѭ���ȴ�
: BTW:
:    �벻Ҫʹ���Զ����У����˸е� :-Q
: 
:                                           peon
: 
ʮ�ָ�лChipmunk�����İ�������ѭ���ȴ�ProtocalState�˺�
�ã�����һֱ�ȴ�Ҳ����ProtocalState�仯���Ұ��ҵ�ԭ����������
�棬��Chipmunk���ҿ�һ����С��ʮ�ָ�л��

ftp1.RemoteHost:='192.168.1.100';
  ftp1.UserId:='id';
  ftp1.Password:='p';
  ftp1.RemoteFile:='cisco.txt';
  
  ftp1.Connect(ftp1.remotehost,ftp1.remoteport);

  i:=60000;
  while TRUE do
    begin
        i:=i-1;
        if (ftp1.ProtocolState=1) or (i=0) then
           break;
    end;

  if i=0 then
     goto protocolerr;

  ftp1.Authenticate(ftp1.UserId,ftp1.Password);

  i:=60000;
   while TRUE do
    begin
        i:=i-1;
        if (ftp1.ProtocolState=2) or (i=0) then
           break;
    end;
   if i=0 then
       goto  PROTOCOLERR;
  
  ftp1.Getfile('\cisco.txt','c:\cisco.txt');
  progressbar1.Max:=ftp1.docoutput.BytesTotal;
  progressbar1.Position:=ftp1.docoutput.BytesTransferred;

--
 ��Դ: ����������BBSվ��bbs.nease.net�E[FROM: www-post@bbs.nease.n]
Technical Details
Message-ID: <3NeIQY$T57@bbs.nease.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: fc86e,b735cb2b0d6ee01f,start
X-Google-Attributes: gidfc86e,public
From: xufang.bbs@bbs.nease.net ()
Subject: Re: ��ȣ�����λ�����ù�delphi 3.0 c/s���FTP
Date: 1998/03/27
Message-ID: <3NeIQY$T57@bbs.nease.net>
X-Deja-AN: 338128478
X-Filename: Program/M.890971906.A
Organization: Net Ease
Newsgroups: cn.bbs.comp.program,