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

void net::sf::jftp::net::FtpConnection::abortTransfer (  )  [inline]

Abort the last spawned transfer.

Definition at line 3118 of file FtpConnection.java.

References net::sf::jftp::net::DataConnection::getCon(), net::sf::jftp::net::FtpTransfer::getDataConnection(), net::sf::jftp::net::DataConnection::out, net::sf::jftp::net::DataConnection::sock, and work.

    {
        try
        {
            DataConnection dcon = lastTransfer.getDataConnection();

            if(dcon == null)
            {
                Log.out("nothing to abort");

                return;
            }

            dcon.getCon().work = false;
            dcon.sock.close();
        }
        catch(Exception ex)
        {
            Log.debug("Exception during abort: " + ex.toString());
            ex.printStackTrace();
        }
    }


Generated by  Doxygen 1.6.0   Back to index