added examples/chant.cpp for simple command-line NORM chat app

pull/82/head
bebopagogo 2023-05-31 19:56:18 -04:00
parent 11b271cc28
commit a15e91379e
1 changed files with 4 additions and 5 deletions

View File

@ -881,16 +881,15 @@ void ChantCommand::HandleNormEvent(const NormEvent& event)
void Usage() void Usage()
{ {
fprintf(stderr, "Usage: chant [name <chatName>][id <nodeIdInteger>][addr <addr>[/<port>]]\n" fprintf(stderr, "Usage: chant [name <chatName>][addr <addr>[/<port>]]\n"
" [interface <name>] [loopback] [info]\n" " [interface <name>] [loopback]\n"
" [cc|cce|ccl|rate <bitsPerSecond>]\n" " [cc|cce|ccl|rate <bitsPerSecond>]\n"
" [ack _auto_|<node1>[,<node2>,...]]\n" " [ack _auto_|<node1>[,<node2>,...]]\n"
" [flush {none|passive|active}]\n" " [id <normNodeId>][flush {none|passive|active}]\n"
" [boost] [debug <level>] [trace]\n" " [boost] [debug <level>] [trace]\n"
" [log <logfile>] [segment <bytes>] [block <count>]\n" " [log <logfile>] [segment <bytes>] [block <count>]\n"
" [parity <count>] [auto <count>]\n" " [parity <count>] [auto <count>]\n"
" [streambuffer <bytes>][silent]\n" " [streambuffer <bytes>][silent]\n");
" [txloss <lossFraction>] [rxloss <lossFraction>]\n");
} // end Usage() } // end Usage()
void PrintHelp() void PrintHelp()