5 #include <emcast/libemcast.h>
8 static int check_channel(int c)
16 asprintf(&url,"239.193.0.%d:8208", c);
18 ret = emcast_new(&emcast, url);
20 fd = emcast_join(emcast, url);
28 ret = select(fd+1, &rfds, NULL, NULL, &tv);
47 printf("checking %d\r", i);
49 if (check_channel(i) ||
52 printf("Active channel %d\n", i);