diff options
Diffstat (limited to 'daemon/mutatorclient.c')
-rw-r--r-- | daemon/mutatorclient.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/daemon/mutatorclient.c b/daemon/mutatorclient.c index b266f65..dfc0ec4 100644 --- a/daemon/mutatorclient.c +++ b/daemon/mutatorclient.c @@ -62,7 +62,13 @@ int main(int argc, char *argv[]) while(1) { printf("enter massage: "); - scanf("%s", message); + + /*@DEVI-should later do something about reading from stdin*/ + if (fgets(message, 2000, stdin) == NULL) + { + puts("could not read from stdin"); + } + puts("read from stdin."); /*send some data*/ if (send(sock, message, strlen(message), 0) < 0) @@ -81,10 +87,12 @@ int main(int argc, char *argv[]) puts("server reply: "); puts(server_reply); +#if 0 if (strncmp(server_reply, "end_comm", strlen(server_reply))) { break; } +#endif } close(sock); |