Exemplo n.º 1
0
Arquivo: Main.cs Projeto: sopindm/bjeb
        public static void Main(string[] args)
        {
            Client client = new Client("127.0.0.1", 4400);
            TestPlugin plugin = new TestPlugin(client);

            client.onSetup = plugin.setup;

            while (true)
            {
                plugin.update();

                if(!client.connected)
                {
                    Console.WriteLine("No connection");
                    System.Threading.Thread.Sleep(1000);
                }
            }
        }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            Client     client = new Client("127.0.0.1", 4400);
            TestPlugin plugin = new TestPlugin(client);

            client.onSetup = plugin.setup;

            while (true)
            {
                plugin.update();

                if (!client.connected)
                {
                    Console.WriteLine("No connection");
                    System.Threading.Thread.Sleep(1000);
                }
            }
        }