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

String net::sf::jftp::net::FtpConnection::system (  )  [inline]

This command is used to find out the type of operating system at the server. The reply shall have as its first word one of the system names listed in the current version of the Assigned Numbers document (RFC 943).

Returns:
The server response of the SYST command

Definition at line 2792 of file FtpConnection.java.

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

Referenced by login().

    { // possible responses 215, 500, 501, 502, and 421
        jcon.send(SYST);

        String response = getLine(POSITIVE);//FTP215_SYSTEM_TYPE);

        if(response != null)
        {
            //StringTokenizer st = new StringTokenizer(response);
            //if (st.countTokens() >= 2)
            //{
            //     st.nextToken();
            //     String os = st.nextToken();
            //     setOsType(os);
            //}
            setOsType(response);
        }
        else
        {
            setOsType("UNIX");
        }

        return response;
    }


Generated by  Doxygen 1.6.0   Back to index