remove debug loggin

This commit is contained in:
stitchy 2023-12-14 07:04:17 +00:00
parent 22042ee3b5
commit c227ccf04e
Signed by: stitchy
SSH key fingerprint: SHA256:yz2SoxdnY67tfY5Jzb0f2v8f5W3o/IF359kbcquWip8
2 changed files with 5 additions and 5 deletions

View file

@ -79,7 +79,7 @@ void onClient(int listenSocketFD) {
memset(final, '\0', 140002); memset(final, '\0', 140002);
charsRead = recv(establishedConnectionFD, final, 140002, MSG_WAITALL); charsRead = recv(establishedConnectionFD, final, 140002, MSG_WAITALL);
if (charsRead < 0) error("ERROR reading from socket"); if (charsRead < 0) error("ERROR reading from socket");
printf("char1: %ld\n", charsRead); //printf("char1: %ld\n", charsRead);
memcpy(buffer1, final, 70001); memcpy(buffer1, final, 70001);
memcpy(buffer2, final + 70001, 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", buffer1);
//printf("SERVER: I received this from the client: \"%s\"\n", buffer2); //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 // do enc
char* cyphertext = malloc(sizeof(char) * 70001); char* cyphertext = malloc(sizeof(char) * 70001);
memset(cyphertext, '\0', strlen(buffer1)+1); memset(cyphertext, '\0', strlen(buffer1)+1);

View file

@ -76,16 +76,16 @@ void onClient(int listenSocketFD) {
memset(buffer1, '\0', 70001); memset(buffer1, '\0', 70001);
charsRead = recv(establishedConnectionFD, buffer1, 70001, MSG_WAITALL); charsRead = recv(establishedConnectionFD, buffer1, 70001, MSG_WAITALL);
if (charsRead < 0) error("ERROR reading from socket"); if (charsRead < 0) error("ERROR reading from socket");
printf("%d\n", charsRead); //printf("%d\n", charsRead);
memset(buffer2, '\0', 70001); memset(buffer2, '\0', 70001);
charsRead = recv(establishedConnectionFD, buffer2, 70001, MSG_WAITALL); charsRead = recv(establishedConnectionFD, buffer2, 70001, MSG_WAITALL);
if (charsRead < 0) error("ERROR reading from socket"); 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", buffer1);
//printf("SERVER: I received this from the client: \"%s\"\n", buffer2); //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 // do enc
char* cyphertext = malloc(70001); char* cyphertext = malloc(70001);