face: remove EndpointId from egress APIs
This commit partially reverts 075bb7dac4bf72cbfcff5e3c2da25c6476090787
refs: #4843, #4973
Change-Id: Iab92addff2bd0fa1e24100d43f9f7076ee84a3f8
diff --git a/daemon/face/link-service.hpp b/daemon/face/link-service.hpp
index c239cf2..c623622 100644
--- a/daemon/face/link-service.hpp
+++ b/daemon/face/link-service.hpp
@@ -113,23 +113,23 @@
getEffectiveMtu() const;
public: // upper interface to be used by forwarding
- /** \brief Send Interest to \p endpoint
+ /** \brief Send Interest
* \pre setTransport has been called
*/
void
- sendInterest(const Interest& interest, const EndpointId& endpoint);
+ sendInterest(const Interest& interest);
- /** \brief Send Data to \p endpoint
+ /** \brief Send Data
* \pre setTransport has been called
*/
void
- sendData(const Data& data, const EndpointId& endpoint);
+ sendData(const Data& data);
- /** \brief Send Nack to \p endpoint
+ /** \brief Send Nack
* \pre setTransport has been called
*/
void
- sendNack(const ndn::lp::Nack& nack, const EndpointId& endpoint);
+ sendNack(const ndn::lp::Nack& nack);
/** \brief signals on Interest received
*/
@@ -170,30 +170,30 @@
receiveNack(const lp::Nack& nack, const EndpointId& endpoint);
protected: // lower interface to be invoked in subclass (send path termination)
- /** \brief send a lower-layer packet via Transport to \p endpoint
+ /** \brief send a lower-layer packet via Transport
*/
void
- sendPacket(const Block& packet, const EndpointId& endpoint);
+ sendPacket(const Block& packet);
protected:
void
notifyDroppedInterest(const Interest& packet);
private: // upper interface to be overridden in subclass (send path entrypoint)
- /** \brief performs LinkService specific operations to send an Interest to \p endpoint
+ /** \brief performs LinkService specific operations to send an Interest
*/
virtual void
- doSendInterest(const Interest& interest, const EndpointId& endpoint) = 0;
+ doSendInterest(const Interest& interest) = 0;
- /** \brief performs LinkService specific operations to send a Data to \p endpoint
+ /** \brief performs LinkService specific operations to send a Data
*/
virtual void
- doSendData(const Data& data, const EndpointId& endpoint) = 0;
+ doSendData(const Data& data) = 0;
- /** \brief performs LinkService specific operations to send a Nack to \p endpoint
+ /** \brief performs LinkService specific operations to send a Nack
*/
virtual void
- doSendNack(const lp::Nack& nack, const EndpointId& endpoint) = 0;
+ doSendNack(const lp::Nack& nack) = 0;
private: // lower interface to be overridden in subclass
virtual void
@@ -241,9 +241,9 @@
}
inline void
-LinkService::sendPacket(const Block& packet, const EndpointId& endpoint)
+LinkService::sendPacket(const Block& packet)
{
- m_transport->send(packet, endpoint);
+ m_transport->send(packet);
}
std::ostream&