helics
3.5.2
|
#include <TypedBrokerServer.hpp>
Public Member Functions | |
virtual void | startServer (const Json::Value *val, const std::shared_ptr< TypedBrokerServer > &ptr)=0 |
virtual void | stopServer ()=0 |
virtual void | processArgs (std::string_view args) |
Static Protected Member Functions | |
static ActionMessage | generateMessageResponse (const ActionMessage &rxcmd, portData &pdata, CoreType ctype) |
static int | getOpenPort (portData &pd) |
static void | assignPort (portData &pd, int pnumber, std::shared_ptr< Broker > &brk) |
static void | logMessage (std::string_view message) |
a virtual class to use as a base for broker servers of various types
|
staticprotected |
generate a reply to a message
References helics::ActionMessage::action(), getOpenPort(), and helics::ActionMessage::messageID.
|
staticprotected |
get an open port for broker to start
Referenced by generateMessageResponse().
|
virtual |
process some potential command line arguments for the typed server
Reimplemented in helics::apps::zmqBrokerServer, and helics::apps::WebServer.
|
pure virtual |
start the server, the server may require a shared pointer to keep the data alive
Implemented in helics::apps::zmqBrokerServer, helics::apps::WebServer, and helics::apps::AsioBrokerServer.
|
pure virtual |
stop the server
Implemented in helics::apps::zmqBrokerServer, helics::apps::WebServer, and helics::apps::AsioBrokerServer.