]> git.sesse.net Git - jam/blobdiff - jam.c
Write a friendly "we're ready" message.
[jam] / jam.c
diff --git a/jam.c b/jam.c
index 5047d286cfc417c4b2fd9bb62a6ef9d3f4d3a311..18bf1220bedcdf52cb218e84eaabb0cf142dbc64 100644 (file)
--- a/jam.c
+++ b/jam.c
@@ -19,8 +19,8 @@ unsigned num_sources = 0;
 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 }
 };
@@ -169,7 +169,15 @@ int main(int argc, char **argv)
        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