MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / loop_impl

Method loop_impl

tdport/td/net/Socks5.cpp:169–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169Result<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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected