private new void Dispose(bool bool_1)
        {
            if (!this.bool_0 && bool_1)
            {
                this.bool_0 = true;
                try
                {
                    base.Shutdown(SocketShutdown.Both);
                    base.Close();
                    base.Dispose();
                }
                catch
                {
                }
                Array.Clear(this.Buffer, 0, this.Buffer.Length);
                this.Buffer          = null;
                this.asyncCallback_0 = null;
                this.gdelegate0_0    = null;
                GoldTree.GetSocketsManager().method_6(this.Id);
                AntiDDosSystem.FreeConnection(this.Address);

                if (GoldTree.GetConfig().data["emu.messages.connections"] == "1")
                {
                    Console.WriteLine(string.Concat(new object[]
                    {
                        ">> Connection Dropped [",
                        this.Id,
                        "] from [",
                        this.Address,
                        "]"
                    }));
                }
            }
        }
        internal void Initialise(SocketConnection.GDelegate0 gdelegate0_1)
        {
            this.Buffer = new byte[1024];

            this.asyncCallback_0 = new AsyncCallback(this.OnReceive);
            this.asyncCallback_1 = new AsyncCallback(this.OnSend);

            this.gdelegate0_0 = gdelegate0_1;

            this.BeginReceive();
        }
        internal void Initialise(SocketConnection.GDelegate0 gdelegate0_1)
        {
            this.Buffer = new byte[1024];

            this.asyncCallback_0 = new AsyncCallback(this.OnReceive);
            this.asyncCallback_1 = new AsyncCallback(this.OnSend);

            this.gdelegate0_0 = gdelegate0_1;

            this.BeginReceive();
        }
        public void GetSocketConnection()
        {
            if (this.Connection != null)
            {
                this.bool_0 = true;
                SocketConnection.GDelegate0 gdelegate0_ = new SocketConnection.GDelegate0(this.ParsePacket);
                this.Connection.Initialise(gdelegate0_);

                //SocketConnection.RouteReceivedDataCallback dataRouter = new SocketConnection.RouteReceivedDataCallback(this.method_13);
                //this.Message1_0.Start(dataRouter);

                //(this.Message1_0.parser as InitialPacketParser).PolicyRequest += new InitialPacketParser.NoParamDelegate(PolicyRequest);
                //(this.Message1_0.parser as InitialPacketParser).SwitchParserRequest += new InitialPacketParser.NoParamDelegate(SwitchParserRequest);

                //this.Message1_0.startPacketProcessing();
            }
        }
        public void method_3()
        {
            if (this.Message1_0 != null)
            {
                this.bool_0 = true;
                SocketConnection.GDelegate0 gdelegate0_ = new SocketConnection.GDelegate0(this.method_13);
                this.Message1_0.method_0(gdelegate0_);

                //SocketConnection.RouteReceivedDataCallback dataRouter = new SocketConnection.RouteReceivedDataCallback(this.method_13);
                //this.Message1_0.Start(dataRouter);

                //(this.Message1_0.parser as InitialPacketParser).PolicyRequest += new InitialPacketParser.NoParamDelegate(PolicyRequest);
                //(this.Message1_0.parser as InitialPacketParser).SwitchParserRequest += new InitialPacketParser.NoParamDelegate(SwitchParserRequest);

                //this.Message1_0.startPacketProcessing();
            }
        }
 internal void method_0(SocketConnection.GDelegate0 gdelegate0_1)
 {
     this.byte_0 = new byte[1024];
     this.asyncCallback_0 = new AsyncCallback(this.method_7);
     this.asyncCallback_1 = new AsyncCallback(this.method_3);
     this.gdelegate0_0 = gdelegate0_1;
     this.method_6();
 }
        private void method_9(bool bool_1)
        {
            if (!this.bool_0 && bool_1)
            {
                this.bool_0 = true;
                try
                {
                    base.Shutdown(SocketShutdown.Both);
                    base.Close();
                    base.Dispose();
                }
                catch
                {
                }
                Array.Clear(this.byte_0, 0, this.byte_0.Length);
                this.byte_0 = null;
                this.asyncCallback_0 = null;
                this.gdelegate0_0 = null;
                GoldTree.smethod_14().method_6(this.uint_0);
                AntiDDosSystem.FreeConnection(this.string_0);

                if (GoldTree.GetConfig().data["emu.messages.connections"] == "1")
                {
                    Console.WriteLine(string.Concat(new object[]
                                    {
                                        ">> Connection Dropped [",
                                        this.uint_0,
                                        "] from [",
                                        this.String_0,
                                        "]"
                                    }));
                }
            }
        }
        private new void Dispose(bool bool_1)
        {
            if (!this.bool_0 && bool_1)
            {
                this.bool_0 = true;
                try
                {
                    base.Shutdown(SocketShutdown.Both);
                    base.Close();
                    base.Dispose();
                }
                catch
                {
                }
                Array.Clear(this.Buffer, 0, this.Buffer.Length);
                this.Buffer = null;
                this.asyncCallback_0 = null;
                this.gdelegate0_0 = null;
                GoldTree.GetSocketsManager().method_6(this.Id);
                AntiDDosSystem.FreeConnection(this.Address);

                if (GoldTree.GetConfig().data["emu.messages.connections"] == "1")
                {
                    Console.WriteLine(string.Concat(new object[]
                                    {
                                        ">> Connection Dropped [",
                                        this.Id,
                                        "] from [",
                                        this.Address,
                                        "]"
                                    }));
                }
            }
        }