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();
 }
Exemple #2
0
 public Writer(WriterStorage storage)
 {
     this.storage = storage;
 }
Exemple #3
0
        //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();
        }
Exemple #4
0
 public SocketFactory(WriterStorage writerStorage, TransportFactory factory)
 {
     this.writerStorage = writerStorage;
     //this.readerStorage = readerStorage;
     this.setTransportFactory(factory);
 }