public void Dispose() { if (cUdp != null) { cUdp.StopListener(); } cUdp = null; }
//function to start the DHCP server //port 67 to recieve, 68 to send public void StartDHCPServer() { try { // start the DHCP server //assign the event handlers cUdp = new clsUDP(67, 68, NetCard); cUdp.DataRcvd += new clsUDP.DataRcvdEventHandler(cUdp_DataRcvd); } catch (Exception ex) { Console.WriteLine(ex.Message); } }