Last active
January 3, 2016 05:49
-
-
Save aozturk/8418146 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // creates or just returns a singleton AMS service instance | |
| static IService& IService::instance(); | |
| // creates (or joins to) a messaging domain that is restricted for communication | |
| void IService::create_domain(std::string domainName, std::string appName); | |
| // starts/stops the reactor for both the communication and the dynamic discovery | |
| void IService::reactor_start(); | |
| void IService::reactor_stop(); | |
| // creates a subscriber for T-typed messages | |
| template<typename T> | |
| void IService::create_subscriber(); | |
| // subscribes a handler object for T-typed messages received | |
| template<typename T> | |
| void IService::subscribe(IHandler& handler); | |
| // unsubscribes from receiving T-typed messages | |
| template<typename T> | |
| void IService::unsubscribe(); | |
| // creates a publisher for T-typed messages | |
| template<typename T> | |
| void IService::create_publisher(); | |
| // sends a message to all subscribers | |
| void IService::send_message(IMsgObj& obj); | |
| // registers a notifier for peer status updates within the domain | |
| void IService::register_discovery(IPeerNotification* notifier); | |
| // returns the own host ip address | |
| std::string IService::get_host_ip() const; | |
| // destroys the service singleton instance | |
| static void IService::destroy(); | |
| // returns the service global logger | |
| Poco::Logger& IService::logger(); | |
| // runs the service in debug mode for exhaustive logging | |
| void IService::debug_mode(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment