コード例 #1
0
        public void CreateSocket(string systemName)
        {
            var ipItem = IPConfigure.FindIpList(systemName);

            client = new UdpClient(new IPEndPoint(ipItem.ATPIP, ipItem.ATPPort));
            client.Connect(ipItem.IP, ipItem.Port);
        }
コード例 #2
0
        /// <summary>
        /// 设置IP按钮点击
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void IPClick(object sender, RoutedEventArgs e)
        {
            IPConfigure ipchange = new IPConfigure();

            ipchange.ShowDialog();
        }
コード例 #3
0
        public void Initialize()
        {
            IPConfigure LoadIPConfig = new IPConfigure();

            socket_later.SocketInitialize();
        }