Add raft listener/peers

This commit is contained in:
Steve Dee 2014-01-17 10:12:42 -08:00
parent fc51f17322
commit c91e950eb7
2 changed files with 15 additions and 1 deletions

View File

@ -389,9 +389,11 @@
c3_c* imp_c;
c3_c* hom_c;
c3_c* nam_c;
c3_c* raf_c;
c3_w kno_w;
c3_w fuz_w;
c3_s por_s;
c3_s rap_s;
u2_bean abo;
u2_bean bat;
u2_bean gab;

View File

@ -70,7 +70,7 @@ _main_getopt(c3_i argc, c3_c** argv)
u2_Host.ops_u.vno = u2_no;
u2_Host.ops_u.kno_w = DefaultKernel;
while ( (ch_i = getopt(argc, argv, "I:f:h:k:n:p:Labcdgqv")) != -1 ) {
while ( (ch_i = getopt(argc, argv, "I:f:h:k:l:n:p:r:Labcdgqv")) != -1 ) {
switch ( ch_i ) {
case 'I': {
u2_Host.ops_u.imp_c = strdup(optarg);
@ -92,6 +92,14 @@ _main_getopt(c3_i argc, c3_c** argv)
}
break;
}
case 'l': {
c3_w arg_w;
if ( u2_yes == _main_readw(optarg, 65536, &arg_w) ) {
u2_Host.ops_u.rap_s = arg_w;
} else return u2_no;
break;
}
case 'n': {
u2_Host.ops_u.nam_c = strdup(optarg);
break;
@ -105,6 +113,10 @@ _main_getopt(c3_i argc, c3_c** argv)
else return u2_no;
break;
}
case 'r': {
u2_Host.ops_u.raf_c = strdup(optarg);
break;
}
case 'L': { u2_Host.ops_u.loh = u2_yes; break; }
case 'a': { u2_Host.ops_u.abo = u2_yes; break; }
case 'b': { u2_Host.ops_u.bat = u2_yes; break; }