Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3480

Show
Ignore:
Timestamp:
05/03/08 02:00:42 (7 months ago)
Author:
lmartin92
Message:

Now Input and Output Streams (hope they work as I haven't tested them yet). Yay!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/lmartin/ftp/tango/net/ftp/FtpClient.d

    r3479 r3480  
    670670    /// Returns:             the data socket or a listener 
    671671    protected SocketConduit getDataSocket() { 
     672        //make sure no open data connection and if open data connection then kill 
     673        if(dataSocket_ !is null) 
     674            this.finishDataCommand(dataSocket_); 
     675         
    672676        // What type are we using? 
    673677        switch(this.inf_.type) { 
     
    15251529        this.finishDataCommand(data); 
    15261530    } 
     1531 
     1532    public InputStream input(char[] path){ 
     1533        SocketConduit dataSocket_ = this.processDataCommand("RETR", path); 
     1534        return dataSocket_; 
     1535    } 
     1536 
     1537    public OutputStream output(char[] path){ 
     1538        SocketConduit dataSocket_ = this.processDataCommand("STOR", path); 
     1539        return dataSocket_; 
     1540    } 
    15271541 
    15281542}