Class: Net::SSH::Transport::PacketStream

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

compute_hmac new set_algorithms

### 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

new( ciphers, hmacs )

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_hmac( payload )

Compute the mac for the given payload.

set_algorithms( cipher, mac )

Set the cipher and mac algorithms to the given arguments.

[Validate]