Skip to content
Snippets Groups Projects
Commit 25522f73 authored by Saif Eddine Askri's avatar Saif Eddine Askri
Browse files

add server and client

parent 0e0e99ed
No related branches found
No related tags found
No related merge requests found
...@@ -11,15 +11,13 @@ ...@@ -11,15 +11,13 @@
std::string createMessage(const std::string& operation, const std::string& key, const std::string& value = "") { std::string createMessage(const std::string& operation, const std::string& key, const std::string& value = "") {
if (operation == "store") { if (operation == "store") {
return "s" "," + key + "," + value + ";"; return "s," + key + "," + value + ";";
} else if (operation == "get") { } else if (operation == "get") {
return ("g" + "," + key + ";"; return "g," + key + ";"; // Klammern entfernt
} else if (operation == "delete") { } else if (operation == "delete") {
return "d" + "," + key + ";"; return "d," + key + ";";
}
else {
return "";
} }
return "";
} }
int main(int argc, char* argv[]) { int main(int argc, char* argv[]) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment