Esempio n. 1
0
 public void Dispose()
 {
     if (cUdp != null)
     {
         cUdp.StopListener();
     }
     cUdp = null;
 }
Esempio n. 2
0
 //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);
     }
 }