Public Instance Methods

process(packet)click to toggle source

The process method should
only be called on Net::SSH::Test::LocalPacket packets; if it is
attempted on a remote packet, then it is an expectation mismatch (a remote
packet was received when a local packet was expected to be sent). This will
happen when either your test script (Net::SSH::Test::Script) or your
program are wrong.

# File lib/net/ssh/test/remote_packet.rb, line 21defprocess(packet)
raise"received packet type #{packet.read_byte} and was not expecting any packet"end

remote?()click to toggle source

Returns true; this is a remote packet.

# File lib/net/ssh/test/remote_packet.rb, line 12defremote?trueend

to_s()click to toggle source

Returns this remote packet as a string, suitable for parsing by Net::SSH::Transport::PacketStream
and friends. When a remote packet is received, this method is called and
the result concatenated onto the input buffer for the packet stream.