コード例 #1
0
        public InputOutput()
        {
            InitializeComponent();

            comboBox1.Items.Clear();
            comboBox1.Items.Add(LangManager.GetString("mainForm_inputMode_command_label"));
            comboBox1.Items.Add(LangManager.GetString("mainForm_inputMode_say_label"));

            comboBox1.SelectedIndex = 0;

            ClockConstantController.CreateController("gui_outputUpdate", 1000 / 200);
        }
コード例 #2
0
        private void UDPClientInit(ushort port)
        {
            this.client = new UdpClient(new IPEndPoint(IPAddress.Any, port));
            this.client.Client.ReceiveBufferSize = int.MaxValue;
            this.client.Client.SendBufferSize    = int.MaxValue;
            this.client.DontFragment             = false;
            this.client.EnableBroadcast          = false;
            uint IOC_IN            = 0x80000000;
            uint IOC_VENDOR        = 0x18000000;
            uint SIO_UDP_CONNRESET = IOC_IN | IOC_VENDOR | 12;

            this.client.Client.IOControl((int)SIO_UDP_CONNRESET, new byte[] { Convert.ToByte(false) }, null);

            ClockConstantController.CreateController("raknetUpdate", UPDATE_TICK);

            this.client.BeginReceive(this.OnReceive, null);
        }
コード例 #3
0
        public PlayerList()
        {
            InitializeComponent();

            ClockConstantController.CreateController("gui_playerlist", 2000);
        }