daemon option --recvtimeout added.

This commit is contained in:
Roland Jax
2014-06-18 18:47:18 +02:00
parent cb35117785
commit 56c5dc668c
6 changed files with 10 additions and 5 deletions
+3 -3
View File
@@ -25,16 +25,16 @@ ebusd_LDADD = $(LIBEBUS_LIBS) \
dist_noinst_SCRIPTS = autogen.sh
ebusd_feed_SOURCES = tool/ebusd_feed.cpp \
ebusd_feed_SOURCES = tools/ebusd_feed.cpp \
lib/appl.cpp
ebusd_feed_LDADD = $(LIBEBUS_LIBS)
ebusd_send_SOURCES = tool/ebusd_send.cpp \
ebusd_send_SOURCES = tools/ebusd_send.cpp \
lib/appl.cpp \
lib/tcpsocket.cpp
ebusd_scan_SOURCES = tool/ebusd_scan.cpp \
ebusd_scan_SOURCES = tools/ebusd_scan.cpp \
lib/appl.cpp \
lib/tcpsocket.cpp
+1
View File
@@ -31,6 +31,7 @@ EBusLoop::EBusLoop() : m_stop(false)
m_bus = new Bus(m_deviceName,
A.getParam<bool>("p_nodevicecheck"),
A.getParam<long>("p_recvtimeout"),
A.getParam<const char*>("p_dumpfile"),
A.getParam<long>("p_dumpsize"),
A.getParam<bool>("p_dump"));
+6 -2
View File
@@ -63,9 +63,13 @@ void define_args()
Appl::type_bool, Appl::opt_none);
A.addItem("p_retries", Appl::Param(2), "r", "retries",
"\tnumber retries send ebus command (2)\n",
"\tnumber retries send ebus command (2)",
Appl::type_int, Appl::opt_mandatory);
A.addItem("p_recvtimeout", Appl::Param(15000), "", "recvtimeout",
"receive timeout in 'us' (15000)\n",
Appl::type_long, Appl::opt_mandatory);
A.addItem("p_ebusconfdir", Appl::Param("/etc/ebusd"), "e", "ebusconfdir",
"directory for ebus configuration (/etc/ebusd)\n",
Appl::type_string, Appl::opt_mandatory);
@@ -103,7 +107,7 @@ void define_args()
Appl::type_string, Appl::opt_mandatory);
A.addItem("p_dumpsize", Appl::Param(100), "", "dumpsize",
"\tmax size for dump file in kB (100)\n",
"\tmax size for dump file in 'kB' (100)\n",
Appl::type_long, Appl::opt_mandatory);
A.addItem("p_settings", Appl::Param(false), "", "settings",