Logo Search packages:      
Sourcecode: jftp version File versions  Download package

String net::sf::jftp::net::FtpConnection::mode ( String  code  )  [inline]

Set mode manually.

Parameters:
code The mode code wanted, I, A, L8 for example
Returns:
The server's response to the request

Definition at line 2872 of file FtpConnection.java.

References getLine(), jcon, net::sf::jftp::net::FtpConstants::MODE, and net::sf::jftp::net::JConnection::send().

Referenced by modeBlocked(), and modeStream().

    {
        jcon.send(MODE + " " + code);

        String ret = "";

        try
        {
            ret = getLine(POSITIVE);//FTP200_OK);
        }
        catch(Exception ex)
        {
            ex.printStackTrace();
        }

        return ret;
    }


Generated by  Doxygen 1.6.0   Back to index