Major changes to socket scheduling in EPoll.
This commit is contained in:
1 parent
790906a6dc
commit
a5a51f8aae
512 files changed
+22663
-2121
No files matched your search
+6
-8
@@ -1,4 +1,5 @@
|
||||
#include "Command.h"
|
||||
#include "Log.h"
|
||||
|
||||
namespace core {
|
||||
|
||||
@@ -7,14 +8,11 @@ namespace core {
|
||||
void Command::output(Session *session) {}
|
||||
|
||||
bool Command::check(std::string request) {
|
||||
if(request != "") {
|
||||
if(name.length() > 0) {
|
||||
size_t start = request.find_first_not_of(" ");
|
||||
if(name == request.substr(start, name.length()))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if(request.size() > 0)
|
||||
if(request == name)
|
||||
if(name.length() > 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
void Command::setName(std::string name) {
|
||||
|
||||
Reference in new issue
Block a user