Many changes

This commit is contained in:
Brad Arant committed 2021-08-05 13:07:53 -07:00
1 parent 50bbfcc3c3
commit 46f98dff69
11 files changed
+110 -100

No files matched your search

+9 -13
View File
@@ -3,28 +3,24 @@
#include "CommandList.h"
namespace core {
int Command::processCommand(coreutils::ZString request, TCPSession *session, std::stringstream &data) {
int Command::processCommand(coreutils::ZString &request, TCPSession &session) {
return 0;
}
void Command::output(Session *session) {}
bool Command::check(coreutils::ZString request) {
if(request.getLength() > 0)
if(request.getLength() == name.length())
if(strncmp(request.getData(), name.c_str(), name.length()) == 0)
if(name.length() > 0)
return true;
return false;
return request[0].equals(name);
}
void Command::setName(std::string name) {
this->name = name;
}
std::string Command::getName() {
return name;
}
}