public TransportTerminalFunction(SynchronousPhysicalInterface spi, NodeMode mode)
 {
     this.spi      = spi;
     rst           = new RegeneratorSectionTermination();
     this.nodeMode = mode;
     if (nodeMode == NodeMode.MULTIPLEXER)
     {
         mst = new MultiplexSectionTermination();
     }
     this.spi.HandleInputData += new HandleInputData(getInputData);
     builder = new FrameBuilder();
 }
 public TransportTerminalFunction(SynchronousPhysicalInterface spi, NodeMode mode)
 {
     this.spi = spi;
     rst = new RegeneratorSectionTermination();
     this.nodeMode = mode;
     if (nodeMode == NodeMode.MULTIPLEXER)
     {
         mst = new MultiplexSectionTermination();
     }
     this.spi.HandleInputData += new HandleInputData(getInputData);
     builder = new FrameBuilder();
 }