::servicecontroller¶servicecontroller is the directory service that:
Public Functions
servicecontroller(const char *binding_addr, unsigned int binding_port, logger *ll = nullptr)¶service controller class constructor.
binding_addr: Ip address the controller must listen to (0.0.0.0 for listen all) binding_port: TCP port to bind controller on. load_topology(std::string path)¶Loads a topology file for the service controller to distribute
run()¶Runs the service controller once instanciated.
stop()¶Stops the service controller main loop.
run_async()¶Asynchronously runs the service controller, returns a handler for the running thread.
terminate()¶Stops the binding of CH1/CH2 sockets.
Protected Functions
peer_ip(zmq::message_t *zmsg)¶Retrieves the sender’s ip in order to advertise endpoint
zmsg: originating ZMQ message.