![]() |
VPTissue Reference Manual
|
Class advertising an available node over the network. More...
#include <NodeAdvertiser.h>


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. | |
Class advertising an available node over the network.
Definition at line 33 of file NodeAdvertiser.h.
| SimPT_Parex::NodeAdvertiser::NodeAdvertiser | ( | int | port, |
| bool | verbose = true, |
||
| QObject * | parent = nullptr |
||
| ) |
Constructor.
| port | The port to send UDP advertisements to |
| verbose | Whether to print information to the standard output or not |
| parent | The QObject parent of this object |
Definition at line 34 of file NodeAdvertiser.cpp.
| void SimPT_Parex::NodeAdvertiser::Start | ( | int | serverPort | ) |
Start finding a server to do work for.
| serverPort | The 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.
| serverPort | The TCP server port to advertise |
| exploration | The name of the exploration the node worked on |
| taskId | The id of the task the node simulated |
Definition at line 87 of file NodeAdvertiser.cpp.