Major changes to socket scheduling in EPoll.

This commit is contained in:
barant committed 2020-02-29 19:27:58 -08:00
1 parent 790906a6dc
commit a5a51f8aae
512 files changed
+22663 -2121

No files matched your search

+34
View File
@@ -25,13 +25,47 @@ 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 PString 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(std::string request, TCPSession *session, std::stringstream &data);
///
/// Use grabInput() within a Command object to force the requesting handler to receive
/// 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(std::string request, TCPSession *session, std::stringstream &data);
protected:
///
/// The vector of all registered commands.
///
std::vector<Command *> commands;
};