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

Method run

tee/cocoon/FwdProxy.cpp:179–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 }
178
179 td::Status run() {
180 while (state_ != State::Done) {
181 switch (state_) {
182 case State::WaitGreeting:
183 TRY_STATUS(wait_greeting());
184 break;
185 case State::WaitAuth:
186 TRY_STATUS(wait_auth());
187 break;
188 case State::WaitRequest:
189 TRY_STATUS(wait_request());
190 break;
191 case State::Done:
192 break;
193 }
194 }
195 return td::Status::OK();
196 }
197
198 td::Status do_loop() {
199 TRY_STATUS(td::loop_read("left", pipe_));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected