Class

PacketStream

Extends:

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

Public Attributes
sequence_number the sequence number of the next packet to be processed.
socket the setter for setting the socket to use for IO communication
Public Methods
compute_hmac Compute the mac for the given payload.
new Create a new packet stream. The given ciphers and hmacs are factories that are used to initialize the cipher and mac attributes.
set_algorithms Set the cipher and mac algorithms to the given arguments.
Private Methods
increment_sequence_number Increment the sequence number. This handles the (rare) case of a sequence number overflowing a long integer, and resets it safely to 0 (as required by the SSH2 protocol).
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.