|
@ -62,11 +62,17 @@ namespace pEp { |
|
|
CallbackDispatcher::notifyHandshake, this, |
|
|
CallbackDispatcher::notifyHandshake, this, |
|
|
&CallbackDispatcher::on_startup, |
|
|
&CallbackDispatcher::on_startup, |
|
|
&CallbackDispatcher::on_shutdown); |
|
|
&CallbackDispatcher::on_shutdown); |
|
|
|
|
|
|
|
|
|
|
|
for (auto target : targets) |
|
|
|
|
|
target.notifyHandshake(nullptr, nullptr, SYNC_NOTIFY_START); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void CallbackDispatcher::stop_sync() |
|
|
void CallbackDispatcher::stop_sync() |
|
|
{ |
|
|
{ |
|
|
pEp::Adapter::shutdown(); |
|
|
pEp::Adapter::shutdown(); |
|
|
|
|
|
|
|
|
|
|
|
for (auto target : targets) |
|
|
|
|
|
target.notifyHandshake(nullptr, nullptr, SYNC_NOTIFY_STOP); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
PEP_STATUS CallbackDispatcher::_messageToSend(::message *msg) |
|
|
PEP_STATUS CallbackDispatcher::_messageToSend(::message *msg) |
|
|