Adds q2 repos to migrate
This commit is contained in:
1 parent
ad1f62c4ee
commit
17f1c61c9e
991 files changed
+178451
No files matched your search
Executable
+23
@@ -0,0 +1,23 @@
|
||||
|
||||
|
||||
|
||||
#include "cbi_pingpong.h"
|
||||
|
||||
CBI_PingPong::CBI_PingPong(unsigned short port)
|
||||
: CommandInterface(port, "PING")
|
||||
{}
|
||||
|
||||
void CBI_PingPong::handleCommandInternal(const QVector<QByteArray> &args)
|
||||
{
|
||||
writeData("PONG");
|
||||
for (const QByteArray &ba : args)
|
||||
{
|
||||
writeData(" ");
|
||||
writeData(quote(ba.constData()));
|
||||
}
|
||||
}
|
||||
|
||||
QString CBI_PingPong::help() const
|
||||
{
|
||||
return QString::fromUtf8("PING <input> - mirror the Input and send the data back");
|
||||
}
|
||||
Reference in new issue
Block a user