public ConnectorFactory(WriterStorage writerStorage, TransportFactory factory) : base(writerStorage, factory) { connector = new Connector(connectorStorage); connectorThread = new Thread(new System.Threading.ThreadStart(connector.Run)); connectorThread.Name = "BNMQ-Connector"; connectorThread.Start(); }
public Writer(WriterStorage storage) { this.storage = storage; }
//protected internal AcceptorStorage acceptorStorage = new AcceptorStorage(); //protected internal System.Threading.Thread acceptorThread = null; //protected internal Acceptor acceptorThreadBody; //protected IDictionary<String, ServerTransport> storage = new Dictionary<String, ServerTransport>(); public AcceptorFactory(WriterStorage writerStorage, TransportFactory factory) : base(writerStorage, factory) { //initAcceptors(); }
public SocketFactory(WriterStorage writerStorage, TransportFactory factory) { this.writerStorage = writerStorage; //this.readerStorage = readerStorage; this.setTransportFactory(factory); }