try to reconnect when ccnd stops
diff --git a/include/sync-ccnx-wrapper.h b/include/sync-ccnx-wrapper.h
index aeb0c3a..dafba33 100644
--- a/include/sync-ccnx-wrapper.h
+++ b/include/sync-ccnx-wrapper.h
@@ -117,6 +117,9 @@
publishRawData (const std::string &name, const char *buf, size_t len, int freshness);
private:
+ void
+ connectCcnd();
+
/// @cond include_hidden
void
createKeyLocator ();
diff --git a/include/sync-log.h b/include/sync-log.h
index 9ab4843..ef84e75 100644
--- a/include/sync-log.h
+++ b/include/sync-log.h
@@ -42,6 +42,9 @@
#define _LOG_FUNCTION_NOARGS \
LOG4CXX_TRACE(staticModuleLogger, __FUNCTION__ << "()");
+#define _LOG_ERROR(x) \
+ LOG4CXX_ERROR(staticModuleLogger, x);
+
void
INIT_LOGGERS ();
@@ -52,6 +55,7 @@
#define _LOG_FUNCTION_NOARGS
#define _LOG_TRACE(x)
#define INIT_LOGGERS(x)
+#define _LOG_ERROR(x)
#ifdef _DEBUG