Revision 581339c4 streamer.c

View differences:

streamer.c
17 17
#include "net_helpers.h"
18 18
#include "loop.h"
19 19
#include "output.h"
20
#include "channel.h"
20 21

  
21 22
static const char *my_iface = NULL;
22 23
static int port = 6666;
......
35 36
{
36 37
  int o;
37 38

  
38
  while ((o = getopt(argc, argv, "b:o:c:t:p:i:P:I:f:m:l")) != -1) {
39
  while ((o = getopt(argc, argv, "b:o:c:t:p:i:P:I:f:m:lC:")) != -1) {
39 40
    switch(o) {
40 41
      case 'b':
41 42
        buff_size = atoi(optarg);
......
70 71
      case 'l':
71 72
        loop_input = true;
72 73
        break;
74
      case 'C':
75
        channel_set_name(optarg);
76
        break;
73 77
      default:
74 78
        fprintf(stderr, "Error: unknown option %c\n", o);
75 79

  
76 80
        exit(-1);
77 81
    }
78 82
  }
83

  
84
  if (!channel_get_name()) {
85
    channel_set_name("generic");
86
  }
79 87
}
80 88

  
81 89
static struct nodeID *init(void)

Also available in: Unified diff