// for Local to Remote private void ReadResponse(byte[] data, int offset, int length) { byte c = data[offset]; if (c == 0) // All is well. { _error = null; } else if (c == 255) { _error = new SSHException("premature EOF"); } else { _error = new SSHException("readResponse() error"); } if (_state == State.WaitingFileInfoResponse) { _state = State.SendingContent; } _responseEvent.Set(); }
// for Local to Remote private void ReadResponse(byte[] data, int offset, int length) { byte c = data[offset]; if (c == 0) { // All is well. _error = null; } else if (c == 255) _error = new SSHException("premature EOF"); else _error = new SSHException("readResponse() error"); if (_state == State.WaitingFileInfoResponse) _state = State.SendingContent; _responseEvent.Set(); }