aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-03-15 18:15:24 +0000
committerGerrit Code Review <gerrit@fd.io>2019-03-15 18:15:24 +0000
commitceaf5f603dc45694509ca96fa3fbede33ed83dd6 (patch)
tree712f17f60f15cfe06b5279f211f935444cf8c773 /libtransport/src
parent1a501cd9146907e187899287d49ac57b90d36245 (diff)
parent456cf2344a2ec1b4e6a68980569e7767e5fb5f3d (diff)
Merge "[HICN-118] Add .clang-format file, format all libtransport project."
Diffstat (limited to 'libtransport/src')
-rw-r--r--libtransport/src/hicn/transport/core/portal.h5
-rw-r--r--libtransport/src/hicn/transport/interfaces/socket_options_default_values.h4
-rw-r--r--libtransport/src/hicn/transport/utils/fd_deadline_timer.h3
3 files changed, 7 insertions, 5 deletions
diff --git a/libtransport/src/hicn/transport/core/portal.h b/libtransport/src/hicn/transport/core/portal.h
index a88bac964..07f84075e 100644
--- a/libtransport/src/hicn/transport/core/portal.h
+++ b/libtransport/src/hicn/transport/core/portal.h
@@ -407,8 +407,9 @@ class Portal {
}
}
-
- TRANSPORT_ALWAYS_INLINE void killConnection() { forwarder_interface_.closeConnection(); }
+ TRANSPORT_ALWAYS_INLINE void killConnection() {
+ forwarder_interface_.closeConnection();
+ }
TRANSPORT_ALWAYS_INLINE void clear() {
for (auto &pend_interest : pending_interest_hash_table_) {
diff --git a/libtransport/src/hicn/transport/interfaces/socket_options_default_values.h b/libtransport/src/hicn/transport/interfaces/socket_options_default_values.h
index 046fea892..13029e83a 100644
--- a/libtransport/src/hicn/transport/interfaces/socket_options_default_values.h
+++ b/libtransport/src/hicn/transport/interfaces/socket_options_default_values.h
@@ -61,8 +61,8 @@ static constexpr uint32_t rate_choice = 0;
static constexpr uint32_t transport_protocol_min_retransmissions = 0;
static constexpr uint32_t transport_protocol_max_retransmissions = 128;
static constexpr uint32_t max_content_object_size = 8096;
-static constexpr uint32_t min_window_size = 1; // Interests
-static constexpr uint32_t max_window_size = 256 * 2; // Interests
+static constexpr uint32_t min_window_size = 1; // Interests
+static constexpr uint32_t max_window_size = 256 * 2; // Interests
} // namespace default_values
diff --git a/libtransport/src/hicn/transport/utils/fd_deadline_timer.h b/libtransport/src/hicn/transport/utils/fd_deadline_timer.h
index 6fb823a05..1c14513c9 100644
--- a/libtransport/src/hicn/transport/utils/fd_deadline_timer.h
+++ b/libtransport/src/hicn/transport/utils/fd_deadline_timer.h
@@ -53,7 +53,8 @@ class FdDeadlineTimer : public DeadlineTimer<FdDeadlineTimer> {
reactor_.addFileDescriptor(
timer_fd_, events,
- [callback = std::forward<WaitHandler &&>(callback)](const Event &event) -> int {
+ [callback = std::forward<WaitHandler &&>(callback)](
+ const Event &event) -> int {
uint64_t s = 0;
std::error_code ec;