helics  3.0.1
Public Member Functions | Static Protected Member Functions | List of all members
helics::apps::TypedBrokerServer Class Referenceabstract

#include <TypedBrokerServer.hpp>

+ Inheritance diagram for helics::apps::TypedBrokerServer:

Public Member Functions

virtual void startServer (const Json::Value *val)=0
 
virtual void stopServer ()=0
 
virtual void processArgs (const std::string &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 (const std::string &message)
 

Detailed Description

a virtual class to use as a base for broker servers of various types

Member Function Documentation

◆ generateMessageResponse()

ActionMessage helics::apps::TypedBrokerServer::generateMessageResponse ( const ActionMessage rxcmd,
portData &  pdata,
CoreType  ctype 
)
staticprotected

generate a reply to a message

References helics::ActionMessage::action(), getOpenPort(), and helics::ActionMessage::messageID.

◆ getOpenPort()

int helics::apps::TypedBrokerServer::getOpenPort ( portData &  pd)
staticprotected

get an open port for broker to start

Referenced by generateMessageResponse().

◆ processArgs()

void helics::apps::TypedBrokerServer::processArgs ( const std::string &  args)
virtual

process some potential command line arguments for the typed server

Reimplemented in helics::apps::zmqBrokerServer, and helics::apps::WebServer.

◆ startServer()

virtual void helics::apps::TypedBrokerServer::startServer ( const Json::Value *  val)
pure virtual

◆ stopServer()

virtual void helics::apps::TypedBrokerServer::stopServer ( )
pure virtual

The documentation for this class was generated from the following files: