[1734] in java-interest

home help back first fref pref prev next nref lref last post

Re: Re: help on ftp (fwd)

daemon@ATHENA.MIT.EDU (min@oti.on.ca)
Fri Sep 15 11:47:44 1995

Date: Wed, 13 Sep 1995 18:05:13 -0400
From: "" <min@oti.on.ca>
To: <n1061925@dodo.fit.qut.edu.au>
Cc: <java-interest@java.Eng.Sun.COM>



As being already pointed out in this mailing list, you
have READ and WRITE the streams you opened. 
    I.E.:
on Thu, 14 Sep 1995 10:58:21 -0400 <n1061925@dodo.fit.qut.edu.au> wrote: 
> 
> I modified my FTP program to be like this :
> 
> // FTP Test
> 
> import java.io.*;
> import net.ftp.FtpClient;
> import net.TelnetOutputStream;
> 
> class FTPtest
> {
>   public static void main (String args[])
>   {
>         TelnetOutputStream tout=null;
>   int i;        
> 
>   System.out.println("Start connection...");
> 
>   FtpClient client = new FtpClient("student");
>   
>   System.out.println("Proxy = " + client.ftpProxyHost);
> 
>   client.login("USERNAME", "PASSWORD");
>   client.binary();
>   client.get("INFO");
changed to something like the following:
     Instream = client.get("INFO");
     bytesRead = InStream.read(buf,0,bufSize);

>   tout = client.put("FROM_DODO");
Similar code for your output stream. 

            --min
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post