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