Esempio n. 1
0
 //Server starten
 public Server(ref PluginManager pm)
 {
     Listener = new TcpListener(localAddr, port);
     listenThread = new Thread(new ThreadStart(ListenForClients));
     listenThread.Start();
     plugin = pm;
 }
Esempio n. 2
0
 static void Main(string[] args)
 {
     //Console.WriteLine("Starting in: \n " + System.Environment.CurrentDirectory);
     //Console.WriteLine("--------------------------------------------------------------------------------");
     PluginManager newPlugin = new PluginManager();
     Server neuerServer = new Server(ref newPlugin);
     Console.WriteLine("Server started...");
 }
Esempio n. 3
0
        public static PluginManager getInstance()
        {
            if (Instance == null)
            {
                Instance = new PluginManager();

            }

            return Instance;
        }