示例#1
0
文件: Server.cs 项目: karinmae/SWE1
 //Server starten
 public Server(ref PluginManager pm)
 {
     Listener = new TcpListener(localAddr, port);
     listenThread = new Thread(new ThreadStart(ListenForClients));
     listenThread.Start();
     plugin = pm;
 }
示例#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...");
 }
示例#3
0
        public static PluginManager getInstance()
        {
            if (Instance == null)
            {
                Instance = new PluginManager();

            }

            return Instance;
        }