public ServerBase(int listenPort, string dbConnectString) { // Start log thread LogThread log = new LogThread(); // Start database thread if( dbConnectString != null ) _db = new DatabaseThread(dbConnectString); // Start listen thread _lt = new ListenThread(listenPort); // Start input thread _inputThread = new InputThread(); }
public ServerBase(int listenPort, string dbConnectString) { // Start log thread LogThread log = new LogThread(); // Start database thread if (dbConnectString != null) { _db = new DatabaseThread(dbConnectString); } // Start listen thread _lt = new ListenThread(listenPort); // Start input thread _inputThread = new InputThread(); }