Ejemplo n.º 1
0
		public ChannelSftp() : base()
		{
			rq = new ChannelSftp.RequestQueue(this, 10);
			SetLocalWindowSizeMax(LOCAL_WINDOW_SIZE_MAX);
			SetLocalWindowSize(LOCAL_WINDOW_SIZE_MAX);
			SetLocalPacketSize(LOCAL_MAXIMUM_PACKET_SIZE);
		}
Ejemplo n.º 2
0
		// 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."
					);
			}
		}