Skip to content

Instantly share code, notes, and snippets.

@aozturk
Last active January 3, 2016 05:49
Show Gist options
  • Select an option

  • Save aozturk/8418146 to your computer and use it in GitHub Desktop.

Select an option

Save aozturk/8418146 to your computer and use it in GitHub Desktop.
// 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