public void setProtocolStack(ProtocolStack stack) { this.prot_stack = stack; if (prot_stack != null) prot_stack.setChannel(this); }