#include "cbi_pingpong.h" CBI_PingPong::CBI_PingPong(unsigned short port) : CommandInterface(port, "PING") {} void CBI_PingPong::handleCommandInternal(const QVector &args) { writeData("PONG"); for (const QByteArray &ba : args) { writeData(" "); writeData(quote(ba.constData())); } } QString CBI_PingPong::help() const { return QString::fromUtf8("PING - mirror the Input and send the data back"); }