diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-09-23 22:31:11 +0000 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-09-23 22:31:11 +0000 |
commit | 449b5181b9da37ca6e370d70757ecf3d7c6007ea (patch) | |
tree | ed0500180d4709be64ec710d2f9004af26e6acb0 | |
parent | bd86c56e2dba9db8ca4a3b1f6ab823f650ebcac1 (diff) |
last time
-rw-r--r-- | client.c | 4 | ||||
-rwxr-xr-x | snowcast_control | bin | 22384 -> 26608 bytes |
2 files changed, 4 insertions, 0 deletions
@@ -108,7 +108,9 @@ int main(int argc, char *argv[]) char input[LINE_MAX]; + fflush(stdout); printf("Enter a number to change to it's station. Click q to end stream.\n"); + fflush(stdout); while (1) { char *line = fgets(input, LINE_MAX, stdin); @@ -159,7 +161,9 @@ void *reply_thread_routine(void* args) { exit(1); } num_stations = ntohs(num_stations); + fflush(stdout); printf("Welcome to Snowcast! The server has %d stations.\n", num_stations); + fflush(stdout); continue; } diff --git a/snowcast_control b/snowcast_control Binary files differindex 5905ab1..264d8c3 100755 --- a/snowcast_control +++ b/snowcast_control |