Exemple #1
0
        public void UDPServerDataContext()
        {
            ConnectionsInfo = new ObservableCollection <SocketUserToKen>();

            IPAddrItemsSource     = new ObservableCollection <IPAddress>();
            IPAddrInfoItemsSource = new ObservableCollection <string>();
            SocketBase _SocketBase = new SocketBase();

            _SocketBase.GitNetworkInterface(IPAddrItemsSource, IPAddrInfoItemsSource);
            IPAddrText          = string.Empty;
            IPAddrSelectedIndex = 0;

            Port = 8088;

            Brush     = Brushes.Red;
            OpenClose = string.Format(cultureInfo, "UDP 侦听");
        }