From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4bcf77e32d0f6d2c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-20 10:39:58 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.mathworks.com!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!attbi_s03.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: ftp client package References: X-Newsreader: Tom's custom newsreader Message-ID: <1U7vb.258017$Tr4.804652@attbi_s03> NNTP-Posting-Host: 24.6.135.22 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s03 1069353597 24.6.135.22 (Thu, 20 Nov 2003 18:39:57 GMT) NNTP-Posting-Date: Thu, 20 Nov 2003 18:39:57 GMT Organization: Comcast Online Date: Thu, 20 Nov 2003 18:39:57 GMT Xref: archiver1.google.com comp.lang.ada:2758 Date: 2003-11-20T18:39:57+00:00 List-Id: >Has someone writen an ada ftp client package? Do you mean something with declarations like: type Connection_Type is new Ada.Finalization.Limited_Controlled with private; procedure Connect(Connection: in out Connection_Type; Site, User, Password: in String; Timeout : in Duration := 60.0; Ftp_Port : in Claw.Sockets.Port_Type := Claw.Sockets.Ftp_Port; -- common case Use_Pasv : in Boolean := True); -- common case generic with procedure Process_Incoming_Data( Line : in out Ada.Streams.Stream_Element_Array; Last : in out Ada.Streams.Stream_Element_Offset; Quit : in out Boolean) is Null_Process_Incoming_Data; procedure General_Get(Connection: in out Connection_Type; Source_File_Name: in String; Target_File_Name: in String; -- "" => no target file Timeout : in Duration := 2.0); -- Use this generic to download a file. It can save the result -- as a new disk file, or pass it as it arrives to the generic -- parameter procedure Process_Incoming_Data. That procedure will procedure Change_Working_Directory(Connection: in out Connection_Type; Target_Directory_Name: in String); and so forth?