- for(node = connection_tree->head; node; node = node->next)
- {
- c = (connection_t *)node->data;
- FD_SET(c->socket, fs);
- }
-
- for(i = 0; i < tcp_sockets; i++)
- FD_SET(tcp_socket[i], fs);
-
- for(i = 0; i < udp_sockets; i++)
- FD_SET(udp_socket[i], fs);
-
- FD_SET(device_fd, fs);
-cp
-}
-
-/* Purge edges and subnets of unreachable nodes. Use carefully. */