Example #1
0
 public ServerThread()
 {
     maytinhInfoManager = new MaytinhInfoManager();
     listener           = new TcpListener(IPAddress.Any, port);
     ListClient         = new List <Socket>();
     socket             = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
 }
Example #2
0
 public void SetClienttoList(string FirstIP, string LastIP, string SubnetMask)
 {
     maytinhInfoManager = new MaytinhInfoManager(FirstIP, LastIP, SubnetMask);
     if (_onClientListChanged != null)
     {
         _onClientListChanged(maytinhInfoManager.maytinh);
     }
 }