public TransportLayer(LinkLayer linklayer) { this.ll = linklayer; this.running = true; //new Channel(Channel.Encodings.BYTEARRAY, Channel.Types.BIDIRECTIONAL); //this.inChannels.Add(this.control_channel.ID, this.control_channel); //this.outChannels.Add(this.control_channel.ID, this.control_channel); //this.next_channel_id = 1; }
public static void run(FileStream HIDin, FileStream HIDout) { LinkLayer ll = new LinkLayer(HIDin, HIDout); ll.connect(); ll.start(); TransportLayer tl = new TransportLayer(ll); Client client = new Client(tl); client.SendControlMessage(Client.CTRL_MSG_FROM_CLIENT_STAGE2_RUNNING); // enqueue STAGE2_RUNNING message client.run(); }