Changeset View
Changeset View
Standalone View
Standalone View
sftp/kio_sftp.h
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Line(s) | 81 | private: // Private variables | |||
---|---|---|---|---|---|
136 | */ | 136 | */ | ||
137 | class GetRequest { | 137 | class GetRequest { | ||
138 | public: | 138 | public: | ||
139 | /** | 139 | /** | ||
140 | * Creates a new GetRequest object. | 140 | * Creates a new GetRequest object. | ||
141 | * @param file the sftp_file object which should be transferred. | 141 | * @param file the sftp_file object which should be transferred. | ||
142 | * @param sb the attributes of that sftp_file object. | 142 | * @param sb the attributes of that sftp_file object. | ||
143 | * @param maxPendingRequests the maximum number of parallel requests to start with. | 143 | * @param maxPendingRequests the maximum number of parallel requests to start with. | ||
144 | * The number will be adjusted automatically depending | 144 | * The more are pending the higher the potential memory | ||
145 | * on the connection speed. | 145 | * foot print, however if the connection allows it | ||
146 | * we'll get better throughput. | ||||
146 | */ | 147 | */ | ||
147 | GetRequest(sftp_file file, sftp_attributes sb, ushort maxPendingRequests = 1); | 148 | GetRequest(sftp_file file, sftp_attributes sb, ushort maxPendingRequests = 128); | ||
148 | /** | 149 | /** | ||
149 | * Removes all pending requests and closes the SFTP channel and attributes | 150 | * Removes all pending requests and closes the SFTP channel and attributes | ||
150 | * in order to avoid memory leaks. | 151 | * in order to avoid memory leaks. | ||
151 | */ | 152 | */ | ||
152 | ~GetRequest(); | 153 | ~GetRequest(); | ||
153 | 154 | | |||
154 | /** | 155 | /** | ||
155 | * Starts up to maxPendingRequests file requests. Reading is performed in the | 156 | * Starts up to maxPendingRequests file requests. Reading is performed in the | ||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |