MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Add

Method Add

src/network/network_crypto.cpp:397–403  ·  view source on GitHub ↗

* Add the given sub-handler to this handler, if the handler can be used (e.g. there are authorized keys or there is a password). * @param handler The handler to add. */

Source from the content-addressed store, hash-verified

395 * @param handler The handler to add.
396 */
397void CombinedAuthenticationServerHandler::Add(CombinedAuthenticationServerHandler::Handler &&handler)
398{
399 /* Is the handler configured correctly, e.g. does it have a password? */
400 if (!handler->CanBeUsed()) return;
401
402 this->handlers.push_back(std::move(handler));
403}
404
405/* virtual */ void CombinedAuthenticationServerHandler::SendRequest(struct Packet &p)
406{

Callers 1

CreateMethod · 0.45

Calls 2

push_backMethod · 0.80
CanBeUsedMethod · 0.45

Tested by

no test coverage detected