32 : nInInterests(linkServiceCounters.nInInterests)
33 , nOutInterests(linkServiceCounters.nOutInterests)
34 , nInterestsExceededRetx(linkServiceCounters.nInterestsExceededRetx)
35 , nInData(linkServiceCounters.nInData)
36 , nOutData(linkServiceCounters.nOutData)
37 , nInNacks(linkServiceCounters.nInNacks)
38 , nOutNacks(linkServiceCounters.nOutNacks)
39 , nInPackets(transportCounters.nInPackets)
40 , nOutPackets(transportCounters.nOutPackets)
41 , nInBytes(transportCounters.nInBytes)
42 , nOutBytes(transportCounters.nOutBytes)
43 , m_linkServiceCounters(linkServiceCounters)
44 , m_transportCounters(transportCounters)
48 Face::Face(unique_ptr<LinkService> service, unique_ptr<Transport> transport)
49 : afterReceiveInterest(service->afterReceiveInterest)
50 , afterReceiveData(service->afterReceiveData)
51 , afterReceiveNack(service->afterReceiveNack)
52 , onDroppedInterest(service->onDroppedInterest)
53 , afterStateChange(transport->afterStateChange)
54 , m_service(std::move(service))
55 , m_transport(std::move(transport))
56 , m_counters(m_service->getCounters(), m_transport->getCounters())
58 m_service->setFaceAndTransport(*
this, *m_transport);
59 m_transport->setFaceAndLinkService(*
this, *m_service);
FaceCounters(const LinkService::Counters &linkServiceCounters, const Transport::Counters &transportCounters)
Generalization of a network interface.
Face(unique_ptr< LinkService > service, unique_ptr< Transport > transport)
FaceUri getLocalUri() const noexcept
Returns a FaceUri representing the local endpoint.
FaceUri getRemoteUri() const noexcept
Returns a FaceUri representing the remote endpoint.
FaceId getId() const noexcept
Returns the face ID.
For internal use by FaceLogging macros.
Counters provided by LinkService.
Counters provided by a transport.
std::ostream & operator<<(std::ostream &os, const FaceLogHelper< Face > &flh)