face: Transport::canChangePersistencyTo
Feasibility of transport persistency change can be checked with
Transport::canChangePersistencyTo before executing the actual change.
This enables management to verify persistency and other parameters
in a faces/update command before applying the updates.
Change-Id: Ia283f0daf678f47aad7b78b7e06dee4827f57cab
refs: #3232
diff --git a/daemon/face/internal-transport.hpp b/daemon/face/internal-transport.hpp
index 61a12e7..78f62a2 100644
--- a/daemon/face/internal-transport.hpp
+++ b/daemon/face/internal-transport.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2016, Regents of the University of California,
+ * Copyright (c) 2014-2017, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -58,18 +58,15 @@
ndn::nfd::FaceScope scope = ndn::nfd::FACE_SCOPE_LOCAL,
ndn::nfd::LinkType linkType = ndn::nfd::LINK_TYPE_POINT_TO_POINT);
- virtual void
+ void
receiveFromLink(const Block& packet) override;
protected:
- virtual void
- beforeChangePersistency(ndn::nfd::FacePersistency newPersistency) override;
-
- virtual void
+ void
doClose() override;
private:
- virtual void
+ void
doSend(Packet&& packet) override;
private:
@@ -92,28 +89,28 @@
void
connectToForwarder(InternalForwarderTransport* forwarderTransport);
- virtual void
+ void
receiveFromLink(const Block& packet) override;
- virtual void
+ void
close() override
{
}
- virtual void
+ void
pause() override
{
}
- virtual void
+ void
resume() override
{
}
- virtual void
+ void
send(const Block& wire) override;
- virtual void
+ void
send(const Block& header, const Block& payload) override;
private: