diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-09-21 16:57:51 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-09-21 16:57:51 -0400 |
commit | 2707112ffc0b0eed6af8271d32f94e1622203a80 (patch) | |
tree | 33f1ce98717cf15c69814b9832f59311ac03f2c0 | |
parent | 97ff64f344c99f76bbed6b934236ee65eda8a9ef (diff) |
decent stopping point. failing some more tests - may have to redesign my threads
-rw-r--r-- | server.c | 2 | ||||
-rwxr-xr-x | snowcast_server | bin | 44944 -> 44944 bytes | |||
-rw-r--r-- | snowcast_server.dSYM/Contents/Resources/DWARF/snowcast_server | bin | 27469 -> 27442 bytes |
3 files changed, 1 insertions, 1 deletions
@@ -353,7 +353,6 @@ void *send_udp_packet_routine(void *arg) { perror("send_all_udp"); printf("We only sent %d bytes because of the error!\n", bytes_read); } - did_work = 1; @@ -808,6 +807,7 @@ void seek_stations(int station_num) { station_t *station_info = &station_data[station_num]; memset(&station_info->fileBuffer, 0, MAX_STREAM_RATE); int bytes_read = read(station_info->streamFd, &station_info->fileBuffer, MAX_STREAM_RATE); + lseek(station_info->streamFd, -16, SEEK_SET); // printf("station info - bytes read: %d, station_fd: %d, filePath: %s, buffersize: %d\n", bytes_read, station_info->streamFd, station_info->filePath, station_info->fileBufferSize); // time to restart the file diff --git a/snowcast_server b/snowcast_server Binary files differindex f549d85..cb074ef 100755 --- a/snowcast_server +++ b/snowcast_server diff --git a/snowcast_server.dSYM/Contents/Resources/DWARF/snowcast_server b/snowcast_server.dSYM/Contents/Resources/DWARF/snowcast_server Binary files differindex d52de8f..948984a 100644 --- a/snowcast_server.dSYM/Contents/Resources/DWARF/snowcast_server +++ b/snowcast_server.dSYM/Contents/Resources/DWARF/snowcast_server |