diff --git a/pads/dec_server.c b/pads/dec_server.c index b377840..988eaec 100644 --- a/pads/dec_server.c +++ b/pads/dec_server.c @@ -79,7 +79,7 @@ void onClient(int listenSocketFD) { memset(final, '\0', 140002); charsRead = recv(establishedConnectionFD, final, 140002, MSG_WAITALL); if (charsRead < 0) error("ERROR reading from socket"); - printf("char1: %ld\n", charsRead); + //printf("char1: %ld\n", charsRead); memcpy(buffer1, final, 70001); memcpy(buffer2, final + 70001, 70001); @@ -96,7 +96,7 @@ void onClient(int listenSocketFD) { //printf("SERVER: I received this from the client: \"%s\"\n", buffer1); //printf("SERVER: I received this from the client: \"%s\"\n", buffer2); - printf("strlen: %ld\n", strlen(buffer1)); + //printf("strlen: %ld\n", strlen(buffer1)); // do enc char* cyphertext = malloc(sizeof(char) * 70001); memset(cyphertext, '\0', strlen(buffer1)+1); diff --git a/pads/enc_server.c b/pads/enc_server.c index 19eef45..4e5e329 100644 --- a/pads/enc_server.c +++ b/pads/enc_server.c @@ -76,16 +76,16 @@ void onClient(int listenSocketFD) { memset(buffer1, '\0', 70001); charsRead = recv(establishedConnectionFD, buffer1, 70001, MSG_WAITALL); if (charsRead < 0) error("ERROR reading from socket"); - printf("%d\n", charsRead); + //printf("%d\n", charsRead); memset(buffer2, '\0', 70001); charsRead = recv(establishedConnectionFD, buffer2, 70001, MSG_WAITALL); if (charsRead < 0) error("ERROR reading from socket"); - printf("%d\n", charsRead); + //printf("%d\n", charsRead); //printf("SERVER: I received this from the client: \"%s\"\n", buffer1); //printf("SERVER: I received this from the client: \"%s\"\n", buffer2); - printf("strlen: %ld\n", strlen(buffer1)); + //printf("strlen: %ld\n", strlen(buffer1)); // do enc char* cyphertext = malloc(70001);