Definition at line 41 of file main.cpp.
◆ net_plugin()
net_plugin::net_plugin |
( |
| ) |
|
|
inline |
◆ ~net_plugin()
net_plugin::~net_plugin |
( |
| ) |
|
|
inline |
◆ APPBASE_PLUGIN_REQUIRES()
◆ plugin_initialize()
void net_plugin::plugin_initialize |
( |
const variables_map & | options | ) |
|
|
inline |
Definition at line 58 of file main.cpp.
58{ std::cout << "initialize net plugin\n"; }
◆ plugin_shutdown()
void net_plugin::plugin_shutdown |
( |
| ) |
|
|
inline |
Definition at line 60 of file main.cpp.
60{ std::cout << "shutdown net plugin \n"; }
◆ plugin_startup()
void net_plugin::plugin_startup |
( |
| ) |
|
|
inline |
Definition at line 59 of file main.cpp.
59{ std::cout << "starting net plugin \n"; }
◆ set_program_options()
virtual void net_plugin::set_program_options |
( |
options_description & | cli, |
|
|
options_description & | cfg ) |
|
inlineoverridevirtual |
Implements appbase::abstract_plugin.
Definition at line 49 of file main.cpp.
50 {
51 cfg.add_options()
52 ("listen-endpoint", bpo::value<string>()->default_value( "127.0.0.1:9876" ), "The local IP address and port to listen for incoming connections.")
53 ("remote-endpoint", bpo::value< vector<string> >()->composing(), "The IP address and port of a remote peer to sync with.")
54 ("public-endpoint", bpo::value<string>()->default_value( "0.0.0.0:9876" ), "The public IP address and port that should be advertized to peers.")
55 ;
56 }
The documentation for this class was generated from the following file: