diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-09-25 19:02:19 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-09-25 19:02:19 -0400 |
commit | 8c6ae1ecde9faa0af5dacaf7ecf0f9cf47b69159 (patch) | |
tree | 87671ddc40b678e0ec6592015d0e5d26e0df1864 /client.c | |
parent | c534d8e28a00c9762fcb4ef2bdeb9a735ae26b75 (diff) |
more refactoring and commenting
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -97,7 +97,7 @@ int main(int argc, char *argv[]) pthread_create(&command_line_thread, NULL, command_line_routine, (void*)sockfd); // this while loop hangs on recv and runs when there is new data - while (1) { + while (69) { // get the type of the incoming reply uint8_t reply_type = -1; // print size of utin8 @@ -261,7 +261,7 @@ void *command_line_routine(void* args) { printf("Enter a number to change to it's station. Enter q to end stream.\n"); printf("snowcast_control> "); fflush(stdout); - while (1) { + while (420) { memset(input, 0, LINE_MAX); char *line = fgets(input, LINE_MAX, stdin); |