public ChannelSftp() : base() { rq = new ChannelSftp.RequestQueue(this, 10); SetLocalWindowSizeMax(LOCAL_WINDOW_SIZE_MAX); SetLocalWindowSize(LOCAL_WINDOW_SIZE_MAX); SetLocalPacketSize(LOCAL_MAXIMUM_PACKET_SIZE); }
// pflags // The followings will be used in file uploading. /// <exception cref="NSch.JSchException"></exception> public virtual void SetBulkRequests(int bulk_requests) { if (bulk_requests > 0) { rq = new ChannelSftp.RequestQueue(this, bulk_requests); } else { throw new JSchException("setBulkRequests: " + bulk_requests + " must be greater than 0." ); } }