All pastes #183623 Raw Edit

Stuff

public text v1 · immutable
#183623 ·published 2006-09-27 01:46 UTC
rendered paste body
 public void receiveFile(String path, char type, long position, long speed)
        throws IOException, SlaveUnavailableException {
        _path = path;

        String index = _rslave.issueReceiveToSlave(path, type, position,
                getTransferIndex(),speed);
        _state = Transfer.TRANSFER_RECEIVING_UPLOAD;
        try {
            _rslave.fetchResponse(index);
        } catch (RemoteIOException e) {
            throw (IOException) e.getCause();
        }
    }

    public void sendFile(String path, char type, long position, long speed)
        throws IOException, SlaveUnavailableException {
        _path = path;

        String index = _rslave.issueSendToSlave(path, type, position,
                getTransferIndex(),speed);
        _state = Transfer.TRANSFER_SENDING_DOWNLOAD;
        try {
            _rslave.fetchResponse(index);
        } catch (RemoteIOException e) {
            throw (IOException) e.getCause();
        }
    }
    public String toString() {
                        try {