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