StoreWatcher::StoreWatcher(StoreWatcherStartParams params) : Device(params.active), _store(NULL), _ctx(params.zctx), _endpoint(params.endpoint), logging_endpoint(params.logging_endpoint), socket(NULL), logging_sock(NULL), watcher(params.store_path, true) { this->_store = new SimpleDirectoryStore(params.store_path); this->id = platform::CreateUUID(false); this->logging_sock = new socket_t(*this->_ctx, ZMQ_PUSH); this->logging_sock->connect(this->logging_endpoint.c_str()); Create log; log.set_id(this->id); Envelope e; log.add_to_envelope(e); zeromq::SendEnvelope(*this->logging_sock, e, false, 0); }