Home | History | Annotate | Download | only in client

Lines Matching refs:State

37 // the state machine should immediately transition to the next state
56 mState(State::Init),
103 // Before waiting, polling or receiving we check the current state and
105 // also lead to instant state changes without any polling. The new state
108 case State::Init:
109 // The starting state. This is the state the client is in when
110 // it first starts. It's also the state that the client returns
112 setNextState(State::Selecting);
114 case State::Selecting:
115 // In the selecting state the client attempts to find DHCP
116 // servers on the network. The client remains in this state
121 case State::Requesting:
122 // In the requesting state the client has found a suitable
127 setNextState(State::Init);
133 case State::Bound:
134 // The client enters the bound state when the server has
140 setNextState(State::Renewing);
151 case State::Renewing:
152 // In the renewing state the client is sending a request for the
154 // timer expires when in this state the client will attempt to
158 setNextState(State::Rebinding);
164 case State::Rebinding:
166 // rebinding state. In this state the client sends a request for
170 // move to the Init state to try to find a new DHCP server.
173 setNextState(State::Init);
183 // The proper action for the current state has been taken, perform any
191 const char* DhcpClient::stateToStr(State state) {
192 switch (state) {
193 case State::Init:
195 case State::Selecting:
197 case State::Requesting:
199 case State::Bound:
201 case State::Renewing:
203 case State::Rebinding:
211 // If there is no timeout the state machine has indicated that it wants
212 // an immediate transition to another state. Do nothing.
242 case State::Selecting:
244 // Received an offer, move to the Requesting state
248 setNextState(State::Requesting);
252 case State::Requesting:
253 case State::Renewing:
254 case State::Rebinding:
261 setNextState(State::Bound);
267 // move to the Init state. This might still not fix
272 setNextState(State::Init);
507 void DhcpClient::setNextState(State state) {
508 if (kDebug) ALOGD("Moving from state %s to %s",
509 stateToStr(mState), stateToStr(state));
510 mState = state;