/// <summary> /// Create a new packet store for a given channel. /// </summary> /// <param name="manager"></param> /// <param name="channel"></param> /// <param name="name"></param> public SSHPacketStore(SSHPacketRouter manager, SSHAbstractChannel channel, String name) { this.manager = manager; this.channel = channel; this.name = name; this.header = new HeaderPacket(); // Dummy, never used header.Next = header.Previous = header; }
/// <summary> /// Initialize the channel. /// </summary> /// <param name="manager"></param> /// <param name="channelid"></param> /// <param name="context"></param> protected internal virtual void Init(SSHPacketRouter manager, int channelid, SSHContext context) { this.channelid = channelid; this.manager = manager; this.ms = new SSHPacketStore(manager, this, "Channel " + channelid); this.context = context; FireEvent(this, ChannelState.INITIALIZED); }