Skip to content

Commit

Permalink
face: minor code reorganization and doxygen cleanups
Browse files Browse the repository at this point in the history
Change-Id: I280bd2f4d282f246ef491e327a5b990ca7600dd3
  • Loading branch information
Pesa committed Feb 18, 2024
1 parent 18592d1 commit e0b67df
Show file tree
Hide file tree
Showing 13 changed files with 442 additions and 548 deletions.
48 changes: 0 additions & 48 deletions daemon/face/face-counters.cpp

This file was deleted.

98 changes: 0 additions & 98 deletions daemon/face/face-counters.hpp

This file was deleted.

20 changes: 19 additions & 1 deletion daemon/face/face.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2014-2022, Regents of the University of California,
* Copyright (c) 2014-2024, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
Expand All @@ -27,6 +27,24 @@

namespace nfd::face {

FaceCounters::FaceCounters(const LinkService::Counters& linkServiceCounters,
const Transport::Counters& transportCounters)
: nInInterests(linkServiceCounters.nInInterests)
, nOutInterests(linkServiceCounters.nOutInterests)
, nInterestsExceededRetx(linkServiceCounters.nInterestsExceededRetx)
, nInData(linkServiceCounters.nInData)
, nOutData(linkServiceCounters.nOutData)
, nInNacks(linkServiceCounters.nInNacks)
, nOutNacks(linkServiceCounters.nOutNacks)
, nInPackets(transportCounters.nInPackets)
, nOutPackets(transportCounters.nOutPackets)
, nInBytes(transportCounters.nInBytes)
, nOutBytes(transportCounters.nOutBytes)
, m_linkServiceCounters(linkServiceCounters)
, m_transportCounters(transportCounters)
{
}

Face::Face(unique_ptr<LinkService> service, unique_ptr<Transport> transport)
: afterReceiveInterest(service->afterReceiveInterest)
, afterReceiveData(service->afterReceiveData)
Expand Down
Loading

0 comments on commit e0b67df

Please sign in to comment.