# File lib/net/ssh/test/script.rb, line 35
35:     def opens_channel(confirm=true)
36:       channel = Channel.new(self)
37:       channel.remote_id = 5555
38: 
39:       events << LocalPacket.new(:channel_open) { |p| channel.local_id = p[:remote_id] }
40: 
41:       if confirm
42:         events << RemotePacket.new(:channel_open_confirmation, channel.local_id, channel.remote_id, 0x20000, 0x10000)
43:       end
44: 
45:       channel
46:     end