| 167 | } |
| 168 | |
| 169 | Result<Socks5::Action> Socks5::loop_impl() { |
| 170 | switch (state_) { |
| 171 | case State::SendGreeting: |
| 172 | send_greeting(); |
| 173 | break; |
| 174 | case State::WaitGreetingResponse: |
| 175 | TRY_STATUS(wait_greeting_response()); |
| 176 | break; |
| 177 | case State::WaitPasswordResponse: |
| 178 | TRY_STATUS(wait_password_response()); |
| 179 | break; |
| 180 | case State::WaitIpAddressResponse: |
| 181 | TRY_STATUS(wait_ip_address_response()); |
| 182 | break; |
| 183 | default: |
| 184 | UNREACHABLE(); |
| 185 | } |
| 186 | return state_ == State::Done ? Action::Finish : Action::KeepRunning; |
| 187 | } |
| 188 | |
| 189 | } // namespace td |
nothing calls this directly
no outgoing calls
no test coverage detected