Esempio n. 1
0
        public bool method_3()
        {
            bool flag;

            try
            {
                this.socket_0 = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
                this.socket_0.Bind(new IPEndPoint(IPAddress.Any, this.int_0));
                Form1.WriteLine(3, string.Concat(new object[] { "Began to monitor the treasure port ", this.int_0, " IP ", this.string_0.ToString() }));
                this.socket_0.Listen(10);
                AuthServer authServer = this;
                this.socket_0.BeginAccept(new AsyncCallback(authServer.vmethod_0), this.socket_0);
                flag = true;
            }
            catch (Exception exception1)
            {
                Exception exception = exception1;
                Console.WriteLine("Failled to list on port {0}\n{1}", this.int_0, exception.Message);
                Form1.WriteLine(1, string.Concat(new object[] { "监听百宝端口出错 ", this.int_0, "   ", exception.Message }));
                this.socket_0 = null;
                return(false);
            }
            return(flag);
        }
Esempio n. 2
0
 static AuthServer()
 {
     AuthServer.ZYDNGuard();
 }