A program that subscribes to state information.
int main(int argc, char *argv[])
{
const char *name = "user.example.end_of_the_world_as_we_know_it";
char *key, *value;
size_t len;
for (;;) {
fd_set fds;
int result;
ssize_t len;
FD_ZERO(&fds);
FD_SET(event_fd, &fds);
result = select(event_fd + 1, &fds, NULL, NULL, NULL);
if (len > 0) {
printf("the new state of %s is: %s\n", key, value);
}
}
}