From 2d2342d79b65f5b04fece00d41d571ad811f155e Mon Sep 17 00:00:00 2001 From: mmichalek Date: Tue, 27 Oct 2015 14:04:30 -0400 Subject: [PATCH] Begin offline transport support. --- symmetric-client-clib/src/core/SymEngine.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/symmetric-client-clib/src/core/SymEngine.c b/symmetric-client-clib/src/core/SymEngine.c index 71fce0249a..a6a40f1c3d 100644 --- a/symmetric-client-clib/src/core/SymEngine.c +++ b/symmetric-client-clib/src/core/SymEngine.c @@ -159,6 +159,7 @@ SymEngine * SymEngine_new( SymEngine *this, SymProperties *properties) { this->triggerRouterService = SymTriggerRouterService_new(NULL, this->configurationService, this->sequenceService, this->parameterService, this->platform, this->dialect); this->transportManager = SymTransportManagerFactory_create(SYM_PROTOCOL_HTTP, this->parameterService); + this->offlineTransportManager = SymTransportManagerFactory_create(SYM_PROTOCOL_FILE, this->parameterService); this->nodeService = SymNodeService_new(NULL, this->platform); this->nodeService->lastRestartTime = SymDate_new(NULL); this->incomingBatchService = SymIncomingBatchService_new(NULL, this->platform, this->parameterService); @@ -176,6 +177,10 @@ SymEngine * SymEngine_new( SymEngine *this, SymProperties *properties) { this->pullService = SymPullService_new(NULL, this->nodeService, this->dataLoaderService, this->registrationService, this->configurationService); this->pushService = SymPushService_new(NULL, this->nodeService, this->dataExtractorService, this->transportManager, this->parameterService, this->configurationService, this->acknowledgeService); + // TODO add these. +// this->offlinePullService = SymPullService_new(NULL, this->nodeService, this->dataLoaderService, this->registrationService, this->configurationService); +// this->offlinePushService = SymPushService_new(NULL, this->nodeService, this->dataExtractorService, this->transportManager, this->parameterService, +// this->configurationService, this->acknowledgeService); this->purgeService = SymPurgeService_new(NULL, this->parameterService, this->dialect, this->platform); return this;