Class Net::SSH::Transport::PacketStream
In: lib/net/ssh/transport/packet-stream.rb
Parent: Object

The abstract parent of IncomingPacketStream and OutgoingPacketStream. It represents the common interface of its subclasses.

Methods

Attributes

sequence_number  [R]  the sequence number of the next packet to be processed.
socket  [W]  the setter for setting the socket to use for IO communication

Public Class methods

Create a new packet stream. The given ciphers and hmacs are factories that are used to initialize the cipher and mac attributes.

Public Instance methods

Compute the mac for the given payload.

Set the cipher and mac algorithms to the given arguments.

[Validate]