Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
net_plugin Class Reference
Inheritance diagram for net_plugin:
Collaboration diagram for net_plugin:

Public Member Functions

 net_plugin ()
 
 ~net_plugin ()
 
 APPBASE_PLUGIN_REQUIRES ((chain_plugin))
 
virtual void set_program_options (options_description &cli, options_description &cfg) override
 
void plugin_initialize (const variables_map &options)
 
void plugin_startup ()
 
void plugin_shutdown ()
 
- Public Member Functions inherited from appbase::plugin< net_plugin >
 plugin ()
 
virtual ~plugin ()
 
virtual state get_state () const override
 
virtual const std::string & name () const override
 
virtual void register_dependencies ()
 
virtual void initialize (const variables_map &options) override
 
virtual void handle_sighup () override
 
virtual void startup () override
 
virtual void shutdown () override
 
- Public Member Functions inherited from appbase::abstract_plugin
virtual ~abstract_plugin ()
 

Additional Inherited Members

- Public Types inherited from appbase::abstract_plugin
enum  state { registered , initialized , started , stopped }
 
- Protected Member Functions inherited from appbase::plugin< net_plugin >
 plugin (const string &name)
 

Detailed Description

Definition at line 41 of file main.cpp.

Constructor & Destructor Documentation

◆ net_plugin()

net_plugin::net_plugin ( )
inline

Definition at line 44 of file main.cpp.

44{};

◆ ~net_plugin()

net_plugin::~net_plugin ( )
inline

Definition at line 45 of file main.cpp.

45{};

Member Function Documentation

◆ APPBASE_PLUGIN_REQUIRES()

net_plugin::APPBASE_PLUGIN_REQUIRES ( (chain_plugin) )

◆ 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: