@@ -51,12 +51,13 @@ struct
51
51
char * file ; /* File host connection */
52
52
bool endTerminate ; /* Terminate when file/socket "ends" */
53
53
54
- } options = {
55
- .forceITMSync = true,
56
- .tpiuChannel = 1 ,
57
- .bindUrl = DEFAULT_ZMQ_BIND_URL ,
58
- .port = NWCLIENT_SERVER_PORT ,
59
- .server = "localhost"
54
+ } options =
55
+ {
56
+ .forceITMSync = true,
57
+ .tpiuChannel = 1 ,
58
+ .bindUrl = DEFAULT_ZMQ_BIND_URL ,
59
+ .port = NWCLIENT_SERVER_PORT ,
60
+ .server = "localhost"
60
61
};
61
62
62
63
struct
@@ -466,7 +467,7 @@ void _printHelp( const char *const progName )
466
467
fprintf ( stdout , " -f, --input-file: <filename> Take input from specified file" EOL );
467
468
fprintf ( stdout , " -h, --help: This help" EOL );
468
469
fprintf ( stdout , " -n, --itm-sync: Enforce sync requirement for ITM (i.e. ITM needs to issue syncs)" EOL );
469
- fprintf ( stdout , " -s, --server: <Server>:<Port> to use, default %s:%d" EOL , options .server ,options .port );
470
+ fprintf ( stdout , " -s, --server: <Server>:<Port> to use, default %s:%d" EOL , options .server , options .port );
470
471
fprintf ( stdout , " -t, --tpiu: <channel>: Use TPIU decoder on specified channel (normally 1)" EOL );
471
472
fprintf ( stdout , " -v, --verbose: <level> Verbose mode 0(errors)..3(debug)" EOL );
472
473
fprintf ( stdout , " -V, --version: Print version and exit" EOL );
@@ -716,13 +717,13 @@ bool _processOptions( int argc, char *argv[] )
716
717
717
718
return false;
718
719
719
- // ------------------------------------
720
-
721
- case 'z' :
720
+ // ------------------------------------
721
+
722
+ case 'z' :
722
723
options .bindUrl = optarg ;
723
724
break ;
724
725
725
- // ------------------------------------
726
+ // ------------------------------------
726
727
default :
727
728
return false;
728
729
// ------------------------------------
@@ -856,7 +857,7 @@ int main( int argc, char *argv[] )
856
857
857
858
_r .zmqContext = zmq_ctx_new ();
858
859
_r .zmqSocket = zmq_socket ( _r .zmqContext , ZMQ_PUB );
859
- zmq_bind ( _r .zmqSocket , "tcp://*:3442" ); //options.bindUrl );
860
+ zmq_bind ( _r .zmqSocket , "tcp://*:3442" ); //options.bindUrl );
860
861
861
862
/* Reset the TPIU handler before we start */
862
863
TPIUDecoderInit ( & _r .t );
0 commit comments