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 committed 2019-09-19 15:04:46 +08:00
1 parent 2d47cd004c
commit 5131cb8122
3 files changed
+40 -2

No files matched your search

+1 -1
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);
}
/**
+1 -1
View File
@@ -153,7 +153,7 @@ class Telnet {
*
*/
sendData(data) {
return this.sender.send(0x00, data);
return this.sender.sendData(0x00, data);
}
/**