public virtual void setup() { if (top_prot == null) { top_prot = conf.setupProtocolStack(setup_string, this); if (top_prot == null) { throw new System.Exception("ProtocolStack.setup(): couldn't create protocol stack"); } top_prot.UpProtocol = this; bottom_prot = conf.getBottommostProtocol(top_prot); conf.startProtocolStack(bottom_prot); // sets up queues and threads } }