| 164 | } |
| 165 | |
| 166 | void ProxyInboundClientConnection::send_auth_fail(td::Status error, td::Promise<td::BufferSlice> promise) { |
| 167 | promise.set_value(cocoon::create_serialize_tl_object<cocoon_api::client_authorizationWithProxyFailed>( |
| 168 | error.code(), error.message().str())); |
| 169 | state_ = State::Failed; |
| 170 | remove_connecting_info(); |
| 171 | fail_connection(std::move(error)); |
| 172 | } |
| 173 | |
| 174 | void ProxyInboundClientConnection::received_register_message(std::shared_ptr<ProxyClientInfo> client_info) { |
| 175 | if (state_ != State::Auth) { |