30 Face::Face(unique_ptr<LinkService> service, unique_ptr<Transport> transport)
31 : afterReceiveInterest(service->afterReceiveInterest)
32 , afterReceiveData(service->afterReceiveData)
33 , afterReceiveNack(service->afterReceiveNack)
34 , onDroppedInterest(service->onDroppedInterest)
35 , afterStateChange(transport->afterStateChange)
36 , m_service(std::move(service))
37 , m_transport(std::move(transport))
38 , m_counters(m_service->getCounters(), m_transport->getCounters())
40 m_service->setFaceAndTransport(*
this, *m_transport);
41 m_transport->setFaceAndLinkService(*
this, *m_service);
Generalization of a network interface.
Face(unique_ptr< LinkService > service, unique_ptr< Transport > transport)
FaceUri getRemoteUri() const
Returns a FaceUri representing the remote endpoint.
FaceId getId() const noexcept
Returns the face ID.
FaceUri getLocalUri() const
Returns a FaceUri representing the local endpoint.
For internal use by FaceLogging macros.
std::ostream & operator<<(std::ostream &os, const FaceLogHelper< Face > &flh)