]> rtime.felk.cvut.cz Git - frescor/streamer.git/commitdiff
Add -o parameter for destination port
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 28 Nov 2009 17:22:57 +0000 (18:22 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 28 Nov 2009 17:22:57 +0000 (18:22 +0100)
streamer.c

index 8df5efac94b40c839c9e5bda7470f7aeb83baac3..3f0646cc94984e2611932a70d000f015caeb40f2 100644 (file)
@@ -62,6 +62,7 @@ usage(void)
        printf("  -r <path>      video device [%s]\n", vdev);
        printf("  -m <addr>      destination IP address\n");
        printf("  -i <string>    input video device format [%s]\n", impform);
+       printf("  -o <pOrt>      destination port [%d]\n", dport);
       #ifdef CONFIG_STREAMER_WITH_FRSH
        printf("  -b <number>    network budget\n");
        printf("  -p <number>    network period for given budget\n");
@@ -75,8 +76,11 @@ static int args_parse(int argc, char *argv[])
 {
   int v;
 
-  while ((v = getopt(argc, argv, "w:h:r:d:m:i:l:b:p:")) >= 0) {
+  while ((v = getopt(argc, argv, "o:w:h:r:d:m:i:l:b:p:")) >= 0) {
     switch (v) {
+      case 'o':
+        dport = atoi(optarg);
+        break;
       case 'w':
         width = atoi(optarg);
         break;