20 lines
347 B
C++
Executable File
20 lines
347 B
C++
Executable File
|
|
|
|
|
|
#include "cbi_quit.h"
|
|
|
|
CBI_Quit::CBI_Quit(unsigned short port)
|
|
: CommandInterface(port, "QUIT")
|
|
{}
|
|
|
|
void CBI_Quit::handleCommandInternal(const QVector<QByteArray> &)
|
|
{
|
|
writeOk(QLatin1String("Bye!"));
|
|
closeConnection();
|
|
}
|
|
|
|
QString CBI_Quit::help() const
|
|
{
|
|
return QLatin1String("QUIT - close the current connection");
|
|
}
|