use constants for argp options, documentation, allow up to 25 masters, nicer help, better variable names

This commit is contained in:
john30
2015-02-01 13:01:35 +01:00
parent b6ef8d747b
commit 5b373377a4
2 changed files with 73 additions and 57 deletions
+2 -2
View File
@@ -42,11 +42,11 @@ struct options
int acquireRetries; //!< number of retries for bus acquisition [2]
int sendRetries; //!< number of retries for failed sends [2]
int receiveTimeout; //!< timeout for receiving answer from slave in us [15000]
int numberMasters; //!< expected number of masters for arbitration [5]
int masterCount; //!< expected number of masters for arbitration [5]
bool foreground; //!< run in foreground
int port; //!< port to listen for client connections [8888]
bool localhost; //!< listen on 127.0.0.1 interface only
bool localOnly; //!< listen on 127.0.0.1 interface only
const char* logFile; //!< log file name [/var/log/ebusd.log]
bool logRaw; //!< log each received/sent byte on the bus