Exemplo n.º 1
0
        private void Refresh_Click(object sender, RoutedEventArgs e)
        {
            NoMembers  = 0;
            NoGroup    = 0;
            NoSelected = 0;
            groupLists.Clear();
            listView.Clear();
            _index.Clear();
            selectedFiles.Clear();

            hostIPS.Clear();
            foreach (System.Net.NetworkInformation.NetworkInterface ni in System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces())
            {
                foreach (var x in ni.GetIPProperties().UnicastAddresses)
                {
                    if (x.Address.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork)
                    {
                        hostIPS.Add(x.Address);
                        System.Diagnostics.Debug.WriteLine(x.Address);
                    }
                }
            }
            UserList.ClearAllList();
            Groups.Items.Clear();
            BroadCasting.Do();
        }
Exemplo n.º 2
0
 private void broadcast_proc()
 {
     while (true)
     {
         BroadCasting.Do();
         Thread.Sleep(REFRESH_INTERVAL * 1000);
     }
 }
Exemplo n.º 3
0
            public void StopAll()
            {
                StopThread(broadcast);

                BroadCasting.Disconnect();
                if (w.rtpClient != null)
                {
                    w.rtpClient.Dispose();
                }
                StopThread(udpReceving);
                StopThread(tcpReceving);
                StopThread(fileSending);
                StopThread(fileReceving);
                StopThread(rtpReceving);
            }