Add and use the sendData method which will automatically break long data (longer than 0x1fff bytes) into different stream requests.

This commit is contained in:
NI
2019-09-19 15:04:46 +08:00
parent 2d47cd004c
commit 5131cb8122
3 changed files with 40 additions and 2 deletions

View File

@@ -200,7 +200,7 @@ class SSH {
*
*/
async sendData(data) {
return this.sender.send(CLIENT_DATA_STDIN, data);
return this.sender.sendData(CLIENT_DATA_STDIN, data);
}
/**