OpenTTD Source: ClientGamePasswordRequestHandler Class Reference

OpenTTD Source 15.0-RC2

Private Member Functions
ClientGamePasswordRequestHandler Class Reference
Inheritance diagram for ClientGamePasswordRequestHandler:

## Private Member Functions
virtual void | SendResponse () override
| Callback to trigger sending the response for the password request.
virtual void | AskUserForPassword (std::shared_ptr< NetworkAuthenticationPasswordRequest > request) override
| Callback to trigger asking the user for the password.

## Additional Inherited Members
Public Member Functions inherited from NetworkAuthenticationPasswordRequestHandler
virtual void | Reply (const std::string &password) override
| Reply to the request with the given password.
Protected Attributes inherited from NetworkAuthenticationPasswordRequestHandler
std::string | password
| The entered password.

## Detailed Description

Definition at line 663 of file network_client.cpp.

## Member Function Documentation

## ◆ AskUserForPassword()

virtual void ClientGamePasswordRequestHandler::AskUserForPassword | ( | std::shared_ptr< NetworkAuthenticationPasswordRequest > | request | ) |
| inlineoverrideprivatevirtual

Callback to trigger asking the user for the password.

Parameters

  request | The request to the user, to which it can reply with the password.

Implements NetworkAuthenticationPasswordRequestHandler.

Definition at line 665 of file network_client.cpp.

References _network_join, and NetworkJoinInfo::server_password.

## ◆ SendResponse()

virtual void ClientGamePasswordRequestHandler::SendResponse | ( |  | ) |
| inlineoverrideprivatevirtual

Callback to trigger sending the response for the password request.

Implements NetworkAuthenticationPasswordRequestHandler.

Definition at line 664 of file network_client.cpp.

References ClientNetworkGameSocketHandler::SendAuthResponse().

The documentation for this class was generated from the following file:

- src/network/network_client.cpp