Пример #1
0
 static void Main(string[] args)
 {
     Net net = new Net();
     LoginParam param = new LoginParam();
     param.user = "******";
     param.psw = "1111111";
     param.host = "127.0.0.1";
     param.port = 15299;
     net.ConnectLoginServer(param);
     while (true)
     {
         net.Update();
         System.Threading.Thread.Sleep(10);
     }
 }
Пример #2
0
        static void Main(string[] args)
        {
            Net        net   = new Net();
            LoginParam param = new LoginParam();

            param.user = "******";
            param.psw  = "1111111";
            param.host = "127.0.0.1";
            param.port = 15299;
            net.ConnectLoginServer(param);
            while (true)
            {
                net.Update();
                System.Threading.Thread.Sleep(10);
            }
        }