-/*
- put all file descriptors in an fd_set array
-*/
-void build_fdset(fd_set *fs)
-{
- avl_node_t *node;
- connection_t *c;
- int i;
-cp
- FD_ZERO(fs);
-
- for(node = connection_tree->head; node; node = node->next)
- {
- c = (connection_t *)node->data;
- FD_SET(c->socket, fs);
- }
-
- for(i = 0; i < listen_sockets; i++)
- {
- FD_SET(tcp_socket[i], fs);
- FD_SET(udp_socket[i], fs);
- }
-
- FD_SET(device_fd, fs);
-cp
-}
-
-/* Purge edges and subnets of unreachable nodes. Use carefully. */