included the basic architecture for hpsh implementation

This commit is contained in:
supunvindula
2023-10-31 10:02:42 +05:30
parent a133fb48eb
commit 23ee18e454
6 changed files with 352 additions and 71 deletions

View File

@@ -280,8 +280,12 @@ namespace usr
{
LOG_INFO << "shell input received:" << content;
std::string response = hpsh::serve(content.c_str());
LOG_INFO << "response: " << response;
// std::string response = hpsh::serve(content.c_str());
if (hpsh::execute(std::string("user_").append(std::to_string(1)), content.c_str()) == -1)
{
std::cout << "\nError sending message:" << content.c_str() << std::endl;
}
// LOG_INFO << "response: " << response;
return 0;
}