face: add EndpointId in Face and LinkService
refs: #4843
Change-Id: If1249015392ef904a56a0d0d97946e2b3024d7d4
diff --git a/daemon/face/face.hpp b/daemon/face/face.hpp
index 440bb4d..e96bc31 100644
--- a/daemon/face/face.hpp
+++ b/daemon/face/face.hpp
@@ -76,32 +76,32 @@
getTransport() const;
public: // upper interface connected to forwarding
- /** \brief sends Interest on Face
+ /** \brief send Interest to \p endpointId
*/
void
- sendInterest(const Interest& interest);
+ sendInterest(const Interest& interest, const EndpointId& endpointId);
- /** \brief sends Data on Face
+ /** \brief send Data to \p endpointId
*/
void
- sendData(const Data& data);
+ sendData(const Data& data, const EndpointId& endpointId);
- /** \brief sends Nack on Face
+ /** \brief send Nack to \p endpointId
*/
void
- sendNack(const lp::Nack& nack);
+ sendNack(const lp::Nack& nack, const EndpointId& endpointId);
/** \brief signals on Interest received
*/
- signal::Signal<LinkService, Interest>& afterReceiveInterest;
+ signal::Signal<LinkService, Interest, EndpointId>& afterReceiveInterest;
/** \brief signals on Data received
*/
- signal::Signal<LinkService, Data>& afterReceiveData;
+ signal::Signal<LinkService, Data, EndpointId>& afterReceiveData;
/** \brief signals on Nack received
*/
- signal::Signal<LinkService, lp::Nack>& afterReceiveNack;
+ signal::Signal<LinkService, lp::Nack, EndpointId>& afterReceiveNack;
/** \brief signals on Interest dropped by reliability system for exceeding allowed number of retx
*/
@@ -201,21 +201,21 @@
}
inline void
-Face::sendInterest(const Interest& interest)
+Face::sendInterest(const Interest& interest, const EndpointId& endpointId)
{
- m_service->sendInterest(interest);
+ m_service->sendInterest(interest, endpointId);
}
inline void
-Face::sendData(const Data& data)
+Face::sendData(const Data& data, const EndpointId& endpointId)
{
- m_service->sendData(data);
+ m_service->sendData(data, endpointId);
}
inline void
-Face::sendNack(const lp::Nack& nack)
+Face::sendNack(const lp::Nack& nack, const EndpointId& endpointId)
{
- m_service->sendNack(nack);
+ m_service->sendNack(nack, endpointId);
}
inline FaceId