internal void ChangeState(DhcpClientState newState) { assert newState != null; @state = newState; newState.EnterEvent(); DebugPrint("ChangeState -> {0}\n", newState.Name); }
public void Stop() { lock (this) { workerDone = true; workerThread.Join(); udpSession.Close(); udpSession = null; workerThread = null; CancelTimeouts(); @state = null; } DebugPrint("DhcpClient.Stop()\n"); }