예제 #1
0
        public Class114(string string_0, int Port, SocketsManager Manager)
        {
            this.socket_0 = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
            IPEndPoint localEP = new IPEndPoint(IPAddress.Parse(GoldTree.GetConfig().data["game.tcp.bindip"].Replace(",", ".")), Port);

            this.socket_0.Bind(localEP);
            this.socket_0.Listen(0x3e8);
            this.asyncCallback_0 = new AsyncCallback(this.method_4);
            this.class113_0      = Manager;
            AntiDDosSystem.SetupTcpAuthorization(0x4e20);
            Logging.WriteLine("Listening for connections on port: " + Port);
        }
        public Class114(string string_0, int int_2, SocketsManager class113_1)
        {
            this.int_1    = Process.GetCurrentProcess().Id;
            this.socket_0 = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
            IPEndPoint localEP = new IPEndPoint(IPAddress.Parse(GoldTree.GetConfig().data["game.tcp.bindip"]), int_2);

            this.socket_0.Bind(localEP);
            this.socket_0.Listen((int)SocketOptionName.MaxConnections);
            this.asyncCallback_0 = new AsyncCallback(this.method_4);
            this.class113_0      = class113_1;
            AntiDDosSystem.SetupTcpAuthorization(20000);
            Logging.WriteLine("Listening for connections on port: " + int_2);
        }