Пример #1
0
 internal void ChangeState(DhcpClientState newState)
 {
     VTable.Assert(newState != null);
     @state = newState;
     newState.EnterEvent();
     DebugPrint("ChangeState -> {0}\n", newState.Name);
 }
Пример #2
0
        public void Stop()
        {
            using (thisLock.Lock()) {
                workerDone = true;
                workerDoneEvent.WaitOne();

                udp.Close();
                udp          = null;
                workerThread = null;

                CancelTimeouts();
                @state = null;
            }
            DebugPrint("DhcpClient.Stop()\n");
        }