From 449b5181b9da37ca6e370d70757ecf3d7c6007ea Mon Sep 17 00:00:00 2001 From: sotech117 Date: Sat, 23 Sep 2023 22:31:11 +0000 Subject: last time --- client.c | 4 ++++ snowcast_control | Bin 22384 -> 26608 bytes 2 files changed, 4 insertions(+) diff --git a/client.c b/client.c index 81342b6..35d1a10 100644 --- a/client.c +++ b/client.c @@ -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 index 5905ab1..264d8c3 100755 Binary files a/snowcast_control and b/snowcast_control differ -- cgit v1.2.3-70-g09d2