Many changes to ServerCore
This commit is contained in:
1 parent
6969ef0fbb
commit
d445834af6
83 files changed
+666
-756
No files matched your search
+7
-6
@@ -4,17 +4,18 @@
|
||||
|
||||
namespace core {
|
||||
|
||||
int Command::processCommand(std::string request, TCPSession *session, std::stringstream &data) {
|
||||
int Command::processCommand(coreutils::ZString request, TCPSession *session, std::stringstream &data) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Command::output(Session *session) {}
|
||||
|
||||
bool Command::check(std::string request) {
|
||||
if(request.size() > 0)
|
||||
if(request == name)
|
||||
if(name.length() > 0)
|
||||
return true;
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user