VPTissue Reference Manual
SimPT_Parex::ServerNodeProtocol Class Reference

Protocol at the server side to communicate with the node. More...

#include <ServerNodeProtocol.h>

Inheritance diagram for SimPT_Parex::ServerNodeProtocol:
Inheritance graph
Collaboration diagram for SimPT_Parex::ServerNodeProtocol:
Collaboration graph

Public Slots

void Delete (const std::string &name)
 Orders the node to delete all files it has for a certain exploration.
void SendAck ()
 Sends an acknowledgment of a received result to the server.
void SendTask (const SimTask &task)
 Sends a task to the server.
void StopTask ()
 Orders the node to stop its current task.


void ResultReceived (const SimResult &result)
 Signals emitted when a sim result was received.
- Signals inherited from SimPT_Parex::Protocol
void Ended ()
 Signal emitted when the protocol has ended and the connection is closed.
void Error (const std::string &error)
 Signal emitted when an error occured.

Public Member Functions

 ServerNodeProtocol (QTcpSocket *socket, QObject *parent=0)
- Public Member Functions inherited from SimPT_Parex::Protocol
 Protocol (QTcpSocket *socket, QObject *parent=nullptr)
 Constructor. More...
 Protocol (ServerInfo *server, QObject *parent=nullptr)
 Constructor. More...
virtual ~Protocol ()
bool IsConnected ()
 Check if still connected.

Protected Member Functions

virtual void ReceivePtree (const boost::property_tree::ptree &reader)
 Receive a ptree message (implements of Protocol::ReceivePtree).
- Protected Member Functions inherited from SimPT_Parex::Protocol
std::string GetClientIP () const
int GetClientPort () const
void SendPtree (const boost::property_tree::ptree &pt)
 Sends a ptree over the connection.

Detailed Description

Protocol at the server side to communicate with the node.

Definition at line 35 of file ServerNodeProtocol.h.

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