diff options
author | Angelo Mantellini <manangel@cisco.com> | 2019-01-30 12:11:34 +0100 |
---|---|---|
committer | Angelo Mantellini <manangel@cisco.com> | 2019-01-30 15:23:44 +0100 |
commit | e5145b878f9de35676085409878a66899d2ee4f2 (patch) | |
tree | 177f77810901921ee03d1d3b850600c5f2cd1ef9 /libtransport/src/hicn/transport/core/pending_interest.cc | |
parent | 30061551cd39c9f30280bfa0cf3cc909f4fac015 (diff) |
[HICN-18] first commit of libtransport for windows
Change-Id: I3a43b22194aa13ae5de1746e3d4bd9a275070261
Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'libtransport/src/hicn/transport/core/pending_interest.cc')
-rw-r--r-- | libtransport/src/hicn/transport/core/pending_interest.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libtransport/src/hicn/transport/core/pending_interest.cc b/libtransport/src/hicn/transport/core/pending_interest.cc index a2df9ba44..73bc41e87 100644 --- a/libtransport/src/hicn/transport/core/pending_interest.cc +++ b/libtransport/src/hicn/transport/core/pending_interest.cc @@ -34,10 +34,10 @@ PendingInterest::PendingInterest(Interest::Ptr &&interest, on_interest_timeout_callback_(), received_(false) {} -PendingInterest::PendingInterest(Interest::Ptr &&interest, - const OnContentObjectCallback &&on_content_object, - const OnInterestTimeoutCallback &&on_interest_timeout, - std::unique_ptr<asio::steady_timer> &&timer) +PendingInterest::PendingInterest( + Interest::Ptr &&interest, const OnContentObjectCallback &&on_content_object, + const OnInterestTimeoutCallback &&on_interest_timeout, + std::unique_ptr<asio::steady_timer> &&timer) : interest_(std::move(interest)), timer_(std::move(timer)), on_content_object_callback_(std::move(on_content_object)), @@ -60,7 +60,8 @@ const OnContentObjectCallback &PendingInterest::getOnDataCallback() const { return on_content_object_callback_; } -void PendingInterest::setOnDataCallback(const OnContentObjectCallback &on_content_object) { +void PendingInterest::setOnDataCallback( + const OnContentObjectCallback &on_content_object) { PendingInterest::on_content_object_callback_ = on_content_object; } @@ -68,7 +69,8 @@ const OnInterestTimeoutCallback &PendingInterest::getOnTimeoutCallback() const { return on_interest_timeout_callback_; } -void PendingInterest::setOnTimeoutCallback(const OnInterestTimeoutCallback &on_interest_timeout) { +void PendingInterest::setOnTimeoutCallback( + const OnInterestTimeoutCallback &on_interest_timeout) { PendingInterest::on_interest_timeout_callback_ = on_interest_timeout; } |