diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-09-15 01:20:36 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-09-15 01:20:36 -0400 |
commit | 97b4913de92b150ca18690df1b41e62c856aab05 (patch) | |
tree | 24fd472d45615c7aae9370dc0abe6f66baea24d8 /client.c | |
parent | cbfafaabbd846e625796f275b2e843376385cc36 (diff) |
cleanup the hello and welcome interactoin
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -113,12 +113,14 @@ int main(int argc, char *argv[]) if (line == NULL) { continue; } else if (strncmp("q\n", input, LINE_MAX) == 0) { + // end code if type in q printf("Exiting.\n"); break; } else { // convert input to an int int inputInt = (uint16_t)atoi(input); - + + // send the command to change the station struct SetStation setStation; setStation.commandType = 1; setStation.stationNumber = htons(inputInt); |