More info regarding the receiving process of the server added.
authorFrancoisGrondin <francois.grondin2@usherbrooke.ca>
Tue, 24 Oct 2017 15:13:12 +0000 (11:13 -0400)
committerFrancoisGrondin <francois.grondin2@usherbrooke.ca>
Tue, 24 Oct 2017 15:13:12 +0000 (11:13 -0400)
demo/server.c

index 1cf731c9eb7e63541f73524265972990a4620fe5..78ddfb5d45fac53d8accaea4c060022c7413a445 100644 (file)
@@ -68,6 +68,7 @@
 
         message = (char *) malloc(sizeof(char) * nBytes);
 
+        printf("Receiving data........... "); fflush(stdout);
         while( (messageSize = recv(connection_id, message, nBytes, 0)) > 0) {
 
             message[messageSize] = 0x00;
             fwrite(message, messageSize, sizeof(char), fp);
 
         }
+        printf("[OK]\n");
 
+        printf("Closing file............. "); fflush(stdout);
         fclose(fp);
+        printf("[OK]\n");
 
     }
\ No newline at end of file