public _OutputStream_639(ChannelSftp _enclosing, byte[] handle, long[] _offset, SftpProgressMonitor monitor) { this._enclosing = _enclosing; this.handle = handle; this._offset = _offset; this.monitor = monitor; this.init = true; this.isClosed = false; this.ackid = new int[1]; this.startid = 0; this._ackid = 0; this.ackcount = 0; this.writecount = 0; this.header = new ChannelHeader(_enclosing); this._data = new byte[1]; }
internal ChannelHeader(ChannelSftp _enclosing) { this._enclosing = _enclosing; }
internal LsEntry(ChannelSftp _enclosing, string filename, string longname, SftpATTRS attrs) { this._enclosing = _enclosing; this.SetFilename(filename); this.SetLongname(longname); this.SetAttrs(attrs); }
public _InputStream_1034(ChannelSftp _enclosing, long skip, SftpProgressMonitor monitor , byte[] handle) { this._enclosing = _enclosing; this.skip = skip; this.monitor = monitor; this.handle = handle; this.offset = skip; this.closed = false; this.rest_length = 0; this._data = new byte[1]; this.rest_byte = new byte[1024]; this.header = new ChannelHeader(_enclosing); }
/// <exception cref="System.Exception"></exception> private void SendREAD(byte[] handle, long offset, int length, ChannelSftp.RequestQueue rrq) { packet.Reset(); PutHEAD(SSH_FXP_READ, 21 + handle.Length); buf.PutInt(seq++); buf.PutString(handle); buf.PutLong(offset); buf.PutInt(length); GetSession().Write(packet, this, 21 + handle.Length + 4); if (rrq != null) { rrq.Add(seq - 1, offset, length); } }
internal RequestQueue(ChannelSftp _enclosing, int size) { this._enclosing = _enclosing; this.rrq = new ChannelSftp.RequestQueue.Request[size]; for (int i = 0; i < this.rrq.Length; i++) { this.rrq[i] = new ChannelSftp.RequestQueue.Request(this); } this.Init(); }