MCPcopy Create free account
hub / github.com/mscdex/ssh2 / channelEOF

Method channelEOF

lib/protocol/Protocol.js:419–431  ·  view source on GitHub ↗
(chan)

Source from the content-addressed store, hash-verified

417 sendPacket(this, this._packetRW.write.finalize(packet));
418 }
419 channelEOF(chan) {
420 // Does not consume window space
421
422 let p = this._packetRW.write.allocStart;
423 const packet = this._packetRW.write.alloc(1 + 4);
424
425 packet[p] = MESSAGE.CHANNEL_EOF;
426
427 writeUInt32BE(packet, chan, ++p);
428
429 this._debug && this._debug(`Outbound: Sending CHANNEL_EOF (r:${chan})`);
430 sendPacket(this, this._packetRW.write.finalize(packet));
431 }
432 channelClose(chan) {
433 // Does not consume window space
434

Callers 1

eofMethod · 0.80

Calls 3

writeUInt32BEFunction · 0.85
allocMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected