projects
/
yn
/
yn-odas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6a9fe5
)
More info regarding the receiving process of the server added.
author
FrancoisGrondin
<francois.grondin2@usherbrooke.ca>
Tue, 24 Oct 2017 15:13:12 +0000
(11:13 -0400)
committer
FrancoisGrondin
<francois.grondin2@usherbrooke.ca>
Tue, 24 Oct 2017 15:13:12 +0000
(11:13 -0400)
demo/server.c
patch
|
blob
|
history
diff --git
a/demo/server.c
b/demo/server.c
index 1cf731c9eb7e63541f73524265972990a4620fe5..78ddfb5d45fac53d8accaea4c060022c7413a445 100644
(file)
--- a/
demo/server.c
+++ b/
demo/server.c
@@
-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;
@@
-75,7
+76,10
@@
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