The Battle for Wesnoth  1.17.0-dev
Public Types | Public Member Functions | Private Attributes | List of all members
mp::network_registrar Class Reference

RAII helper class to register a network handler. More...

#include <multiplayer.hpp>

Public Types

using handler = std::function< void(const config &)>
 

Public Member Functions

 network_registrar (handler func)
 
 ~network_registrar ()
 

Private Attributes

std::function< void()> remove_handler {}
 

Detailed Description

RAII helper class to register a network handler.

Definition at line 75 of file multiplayer.hpp.

Member Typedef Documentation

◆ handler

using mp::network_registrar::handler = std::function<void(const config&)>

Definition at line 78 of file multiplayer.hpp.

Constructor & Destructor Documentation

◆ network_registrar()

mp::network_registrar::network_registrar ( handler  func)

Definition at line 851 of file multiplayer.cpp.

◆ ~network_registrar()

mp::network_registrar::~network_registrar ( )

Definition at line 858 of file multiplayer.cpp.

Member Data Documentation

◆ remove_handler

std::function<void()> mp::network_registrar::remove_handler {}
private

Definition at line 84 of file multiplayer.hpp.


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