Working Version
This commit is contained in:
1 parent
46f98dff69
commit
20d5c99517
10 files changed
+82
-84
No files matched your search
+13
-13
@@ -26,20 +26,20 @@ namespace core {
|
||||
///
|
||||
|
||||
void add(Command &command, std::string name = "");
|
||||
|
||||
|
||||
///
|
||||
/// Remove a command object from the command list.
|
||||
///
|
||||
|
||||
|
||||
void remove(Command &command);
|
||||
|
||||
|
||||
///
|
||||
/// Use this method to apply a parsed ZString to the command set and execute
|
||||
/// the matching parameter. The selected command will return a true on a call
|
||||
/// to check(). If there is a handler that has a grab on the process handler
|
||||
/// then control is given to the process handler holding the grab on the input.
|
||||
///
|
||||
|
||||
|
||||
bool processRequest(coreutils::ZString &request, TCPSession &session);
|
||||
|
||||
///
|
||||
@@ -47,32 +47,32 @@ namespace core {
|
||||
/// all further input from the socket. Use releaseGrab() method to release the session
|
||||
/// back to normal command processing.
|
||||
///
|
||||
|
||||
|
||||
bool grabInput(TCPSession &session, Command &command);
|
||||
|
||||
///
|
||||
///
|
||||
///
|
||||
|
||||
|
||||
void clearGrab(TCPSession &session);
|
||||
|
||||
|
||||
///
|
||||
///
|
||||
///
|
||||
|
||||
|
||||
int processCommand(coreutils::ZString &request, TCPSession &session);
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
///
|
||||
/// The vector of all registered commands.
|
||||
///
|
||||
|
||||
|
||||
std::vector<Command *> commands;
|
||||
std::string delimiter;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user