aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsnowcast_controlbin35309 -> 21328 bytes
-rwxr-xr-xsnowcast_listenerbin34654 -> 19128 bytes
-rwxr-xr-xsnowcast_serverbin55212 -> 37208 bytes
-rw-r--r--snowcast_server_concurrent.c7
4 files changed, 4 insertions, 3 deletions
diff --git a/snowcast_control b/snowcast_control
index cd01917..0d1ee4f 100755
--- a/snowcast_control
+++ b/snowcast_control
Binary files differ
diff --git a/snowcast_listener b/snowcast_listener
index 1ed31fc..9f75571 100755
--- a/snowcast_listener
+++ b/snowcast_listener
Binary files differ
diff --git a/snowcast_server b/snowcast_server
index cf52441..d9c7013 100755
--- a/snowcast_server
+++ b/snowcast_server
Binary files differ
diff --git a/snowcast_server_concurrent.c b/snowcast_server_concurrent.c
index 47b112a..d0e6aa5 100644
--- a/snowcast_server_concurrent.c
+++ b/snowcast_server_concurrent.c
@@ -112,6 +112,10 @@ int main(int argc, char *argv[])
pthread_t s_thread;
pthread_create(&s_thread, NULL, select_thread, NULL);
+ // start syncchronization thread to broadcast stations
+ pthread_t sync_thread;
+pthread_create(&sync_thread, NULL, synchronization_thread, NULL);
+
// command line interface
char input[LINE_MAX];
while (1) {
@@ -129,9 +133,6 @@ int main(int argc, char *argv[])
print_user_data(i);
}
} else if (strncmp("s\n", input, LINE_MAX) == 0) {
- // start the streaming threads
- pthread_t sync_thread;
- pthread_create(&sync_thread, NULL, synchronization_thread, NULL);
}
}