unsigned room_sources = 0;
const static struct option longopts[] = {
- { "source-file", required_argument, NULL, 's' },
- { "destination-file", required_argument, NULL, 'd' },
+ { "source-list", required_argument, NULL, 's' },
+ { "destination-list", required_argument, NULL, 'd' },
{ "port", required_argument, NULL, 'p' },
{ NULL, 0, NULL, 0 }
};
int server_sock;
parse_options(argc, argv);
+
+ if (destinations == NULL || sources == NULL) {
+ fprintf(stderr, "Missing or empty source or destination host list. Aborting.\n");
+ }
+
server_sock = get_server_socket(port);
+
+ printf("Sending data on port %u from %u sources to %u destinations.\n\n",
+ port, num_sources, num_destinations);
// FIXME: fire off sender workers here