Exemplo n.º 1
0
        internal void ChangeState(DhcpClientState newState)
        {
            assert newState != null;

            @state = newState;
            newState.EnterEvent();
            DebugPrint("ChangeState -> {0}\n", newState.Name);
        }
Exemplo n.º 2
0
        public void Stop()
        {
            lock (this) {
                workerDone = true;
                workerThread.Join();

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

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