Public Member Functions | List of all members
PingServer Class Reference

Experimental Behaviour that will regularly send a short message to the server so that the server knows the block is still online. More...

#include <CommsBehaviours.h>

Inheritance diagram for PingServer:
Behaviour

Public Member Functions

 PingServer (VizBlock *node, String name="PingServer")
 
String start (String args)
 
void update ()
 
- Public Member Functions inherited from Behaviour
virtual char * args ()
 
 Behaviour (String name)
 
virtual boolean is_background ()
 
virtual boolean is_interruptable ()
 
virtual boolean is_priority ()
 
virtual boolean is_running ()
 
virtual boolean is_temp ()
 
virtual String name ()
 
virtual void stop ()
 
 ~Behaviour ()
 

Additional Inherited Members

- Protected Attributes inherited from Behaviour
boolean _background = false
 
boolean _interruptable = true
 
String _name = "name"
 
boolean _priority = false
 
boolean _running = false
 
boolean _temp = false
 

Detailed Description

Experimental Behaviour that will regularly send a short message to the server so that the server knows the block is still online.

Constructor & Destructor Documentation

◆ PingServer()

PingServer::PingServer ( VizBlock node,
String  name = "PingServer" 
)

Member Function Documentation

◆ start()

String PingServer::start ( String  args)
virtual

Start the behaviour, with arguments.

Reimplemented from Behaviour.

◆ update()

void PingServer::update ( )
virtual

Update the behaviour periodically.

Reimplemented from Behaviour.


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