VPTissue Reference Manual
SimPT_Parex::NodeAdvertiser Class Reference

Class advertising an available node over the network. More...

#include <NodeAdvertiser.h>

Inheritance diagram for SimPT_Parex::NodeAdvertiser:
Inheritance graph
Collaboration diagram for SimPT_Parex::NodeAdvertiser:
Collaboration graph

Public Member Functions

 NodeAdvertiser (int port, bool verbose=true, QObject *parent=nullptr)
 Constructor. More...
 
virtual ~NodeAdvertiser ()
 Destructor.
 
void Start (int serverPort)
 Start finding a server to do work for. More...
 
void Start (int serverPort, const std::string &exploration, int taskId)
 Start finding the server we already did work for. More...
 
void Stop ()
 Stop finding a server.
 

Detailed Description

Class advertising an available node over the network.

Definition at line 33 of file NodeAdvertiser.h.

Constructor & Destructor Documentation

SimPT_Parex::NodeAdvertiser::NodeAdvertiser ( int  port,
bool  verbose = true,
QObject parent = nullptr 
)

Constructor.

Parameters
portThe port to send UDP advertisements to
verboseWhether to print information to the standard output or not
parentThe QObject parent of this object

Definition at line 34 of file NodeAdvertiser.cpp.

Member Function Documentation

void SimPT_Parex::NodeAdvertiser::Start ( int  serverPort)

Start finding a server to do work for.

Parameters
serverPortThe TCP server port to advertise

Definition at line 78 of file NodeAdvertiser.cpp.

void SimPT_Parex::NodeAdvertiser::Start ( int  serverPort,
const std::string &  exploration,
int  taskId 
)

Start finding the server we already did work for.

Parameters
serverPortThe TCP server port to advertise
explorationThe name of the exploration the node worked on
taskIdThe id of the task the node simulated

Definition at line 87 of file NodeAdvertiser.cpp.


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