Alexander Afanasyev | a9034b0 | 2014-01-26 18:32:02 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
Eric Newberry | 2642cd2 | 2017-07-13 21:34:53 -0400 | [diff] [blame] | 2 | /* |
Eric Newberry | 0c84164 | 2018-01-17 15:01:00 -0700 | [diff] [blame] | 3 | * Copyright (c) 2014-2018, Regents of the University of California, |
Junxiao Shi | 1e46be3 | 2015-01-08 20:18:05 -0700 | [diff] [blame] | 4 | * Arizona Board of Regents, |
| 5 | * Colorado State University, |
| 6 | * University Pierre & Marie Curie, Sorbonne University, |
| 7 | * Washington University in St. Louis, |
| 8 | * Beijing Institute of Technology, |
| 9 | * The University of Memphis. |
Alexander Afanasyev | 9bcbc7c | 2014-04-06 19:37:37 -0700 | [diff] [blame] | 10 | * |
| 11 | * This file is part of NFD (Named Data Networking Forwarding Daemon). |
| 12 | * See AUTHORS.md for complete list of NFD authors and contributors. |
| 13 | * |
| 14 | * NFD is free software: you can redistribute it and/or modify it under the terms |
| 15 | * of the GNU General Public License as published by the Free Software Foundation, |
| 16 | * either version 3 of the License, or (at your option) any later version. |
| 17 | * |
| 18 | * NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 19 | * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 20 | * PURPOSE. See the GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License along with |
| 23 | * NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
Junxiao Shi | a1937bf | 2014-11-06 11:43:40 -0700 | [diff] [blame] | 24 | */ |
Alexander Afanasyev | a9034b0 | 2014-01-26 18:32:02 -0800 | [diff] [blame] | 25 | |
| 26 | #include "tcp-channel.hpp" |
Alexander Afanasyev | ded1742 | 2018-04-03 19:00:23 -0400 | [diff] [blame^] | 27 | #include "core/global-io.hpp" |
Yukai Tu | 16aabbc | 2015-10-06 05:08:42 -0700 | [diff] [blame] | 28 | #include "generic-link-service.hpp" |
| 29 | #include "tcp-transport.hpp" |
Alexander Afanasyev | a9034b0 | 2014-01-26 18:32:02 -0800 | [diff] [blame] | 30 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 31 | namespace nfd { |
Davide Pesavento | 8fd15e6 | 2017-04-06 19:58:54 -0400 | [diff] [blame] | 32 | namespace face { |
Alexander Afanasyev | a9034b0 | 2014-01-26 18:32:02 -0800 | [diff] [blame] | 33 | |
Alexander Afanasyev | 3958b01 | 2014-01-31 15:06:13 -0800 | [diff] [blame] | 34 | NFD_LOG_INIT("TcpChannel"); |
| 35 | |
Yukai Tu | 16aabbc | 2015-10-06 05:08:42 -0700 | [diff] [blame] | 36 | namespace ip = boost::asio::ip; |
Alexander Afanasyev | 8ad71ba | 2014-01-27 00:07:14 -0800 | [diff] [blame] | 37 | |
Alexander Afanasyev | ded1742 | 2018-04-03 19:00:23 -0400 | [diff] [blame^] | 38 | TcpChannel::TcpChannel(const tcp::Endpoint& localEndpoint, bool wantCongestionMarking, |
| 39 | DetermineFaceScopeFromAddress determineFaceScope) |
Davide Pesavento | 292e5e1 | 2015-03-13 02:08:33 +0100 | [diff] [blame] | 40 | : m_localEndpoint(localEndpoint) |
| 41 | , m_acceptor(getGlobalIoService()) |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 42 | , m_socket(getGlobalIoService()) |
Eric Newberry | 0c84164 | 2018-01-17 15:01:00 -0700 | [diff] [blame] | 43 | , m_wantCongestionMarking(wantCongestionMarking) |
Alexander Afanasyev | ded1742 | 2018-04-03 19:00:23 -0400 | [diff] [blame^] | 44 | , m_determineFaceScope(std::move(determineFaceScope)) |
Junxiao Shi | 61e3cc5 | 2014-03-03 20:40:28 -0700 | [diff] [blame] | 45 | { |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 46 | setUri(FaceUri(m_localEndpoint)); |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 47 | NFD_LOG_CHAN_INFO("Creating channel"); |
Alexander Afanasyev | a9034b0 | 2014-01-26 18:32:02 -0800 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | void |
Alexander Afanasyev | 855a53c | 2014-01-27 12:03:00 -0800 | [diff] [blame] | 51 | TcpChannel::listen(const FaceCreatedCallback& onFaceCreated, |
Davide Pesavento | 47ab029 | 2015-11-02 18:45:39 +0100 | [diff] [blame] | 52 | const FaceCreationFailedCallback& onAcceptFailed, |
Alexander Afanasyev | 855a53c | 2014-01-27 12:03:00 -0800 | [diff] [blame] | 53 | int backlog/* = tcp::acceptor::max_connections*/) |
Alexander Afanasyev | a9034b0 | 2014-01-26 18:32:02 -0800 | [diff] [blame] | 54 | { |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 55 | if (isListening()) { |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 56 | NFD_LOG_CHAN_WARN("Already listening"); |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 57 | return; |
| 58 | } |
| 59 | |
| 60 | m_acceptor.open(m_localEndpoint.protocol()); |
| 61 | m_acceptor.set_option(ip::tcp::acceptor::reuse_address(true)); |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 62 | if (m_localEndpoint.address().is_v6()) { |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 63 | m_acceptor.set_option(ip::v6_only(true)); |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 64 | } |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 65 | m_acceptor.bind(m_localEndpoint); |
| 66 | m_acceptor.listen(backlog); |
Alexander Afanasyev | 53a6fd3 | 2014-03-23 00:00:04 -0700 | [diff] [blame] | 67 | |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 68 | accept(onFaceCreated, onAcceptFailed); |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 69 | NFD_LOG_CHAN_DEBUG("Started listening"); |
Alexander Afanasyev | a9034b0 | 2014-01-26 18:32:02 -0800 | [diff] [blame] | 70 | } |
| 71 | |
| 72 | void |
Alexander Afanasyev | 8ad71ba | 2014-01-27 00:07:14 -0800 | [diff] [blame] | 73 | TcpChannel::connect(const tcp::Endpoint& remoteEndpoint, |
Davide Pesavento | 15b5505 | 2018-01-27 19:09:28 -0500 | [diff] [blame] | 74 | const FaceParams& params, |
Davide Pesavento | 47ab029 | 2015-11-02 18:45:39 +0100 | [diff] [blame] | 75 | const FaceCreatedCallback& onFaceCreated, |
| 76 | const FaceCreationFailedCallback& onConnectFailed, |
Davide Pesavento | c19408d | 2017-04-08 00:42:55 -0400 | [diff] [blame] | 77 | time::nanoseconds timeout) |
Alexander Afanasyev | a9034b0 | 2014-01-26 18:32:02 -0800 | [diff] [blame] | 78 | { |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 79 | auto it = m_channelFaces.find(remoteEndpoint); |
| 80 | if (it != m_channelFaces.end()) { |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 81 | NFD_LOG_CHAN_TRACE("Reusing existing face for " << remoteEndpoint); |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 82 | onFaceCreated(it->second); |
Alexander Afanasyev | 334b714 | 2014-01-28 12:59:39 -0800 | [diff] [blame] | 83 | return; |
| 84 | } |
| 85 | |
Davide Pesavento | 292e5e1 | 2015-03-13 02:08:33 +0100 | [diff] [blame] | 86 | auto clientSocket = make_shared<ip::tcp::socket>(ref(getGlobalIoService())); |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 87 | auto timeoutEvent = scheduler::schedule(timeout, bind(&TcpChannel::handleConnectTimeout, this, |
| 88 | remoteEndpoint, clientSocket, onConnectFailed)); |
Alexander Afanasyev | 8ad71ba | 2014-01-27 00:07:14 -0800 | [diff] [blame] | 89 | |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 90 | NFD_LOG_CHAN_TRACE("Connecting to " << remoteEndpoint); |
Alexander Afanasyev | 8ad71ba | 2014-01-27 00:07:14 -0800 | [diff] [blame] | 91 | clientSocket->async_connect(remoteEndpoint, |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 92 | bind(&TcpChannel::handleConnect, this, |
Eric Newberry | 2642cd2 | 2017-07-13 21:34:53 -0400 | [diff] [blame] | 93 | boost::asio::placeholders::error, remoteEndpoint, clientSocket, |
Davide Pesavento | 15b5505 | 2018-01-27 19:09:28 -0500 | [diff] [blame] | 94 | params, timeoutEvent, onFaceCreated, onConnectFailed)); |
Alexander Afanasyev | a9034b0 | 2014-01-26 18:32:02 -0800 | [diff] [blame] | 95 | } |
| 96 | |
Alexander Afanasyev | 8ad71ba | 2014-01-27 00:07:14 -0800 | [diff] [blame] | 97 | void |
Yukai Tu | 16aabbc | 2015-10-06 05:08:42 -0700 | [diff] [blame] | 98 | TcpChannel::createFace(ip::tcp::socket&& socket, |
Davide Pesavento | 15b5505 | 2018-01-27 19:09:28 -0500 | [diff] [blame] | 99 | const FaceParams& params, |
Eric Newberry | f40551a | 2016-09-05 15:41:16 -0700 | [diff] [blame] | 100 | const FaceCreatedCallback& onFaceCreated) |
Alexander Afanasyev | a16abd2 | 2014-01-31 18:12:29 -0800 | [diff] [blame] | 101 | { |
Junxiao Shi | cde37ad | 2015-12-24 01:02:05 -0700 | [diff] [blame] | 102 | shared_ptr<Face> face; |
Davide Pesavento | 292e5e1 | 2015-03-13 02:08:33 +0100 | [diff] [blame] | 103 | tcp::Endpoint remoteEndpoint = socket.remote_endpoint(); |
Steve DiBenedetto | 2aa4eca | 2014-06-20 10:47:40 -0600 | [diff] [blame] | 104 | |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 105 | auto it = m_channelFaces.find(remoteEndpoint); |
Davide Pesavento | 292e5e1 | 2015-03-13 02:08:33 +0100 | [diff] [blame] | 106 | if (it == m_channelFaces.end()) { |
Eric Newberry | 2642cd2 | 2017-07-13 21:34:53 -0400 | [diff] [blame] | 107 | GenericLinkService::Options options; |
Davide Pesavento | 15b5505 | 2018-01-27 19:09:28 -0500 | [diff] [blame] | 108 | options.allowLocalFields = params.wantLocalFields; |
| 109 | options.reliabilityOptions.isEnabled = params.wantLpReliability; |
Eric Newberry | f40551a | 2016-09-05 15:41:16 -0700 | [diff] [blame] | 110 | |
Eric Newberry | 0c3e57b | 2018-01-25 20:54:46 -0700 | [diff] [blame] | 111 | if (boost::logic::indeterminate(params.wantCongestionMarking)) { |
| 112 | // Use default value for this channel if parameter is indeterminate |
| 113 | options.allowCongestionMarking = m_wantCongestionMarking; |
| 114 | } |
| 115 | else { |
| 116 | options.allowCongestionMarking = params.wantCongestionMarking; |
| 117 | } |
| 118 | |
| 119 | if (params.baseCongestionMarkingInterval) { |
| 120 | options.baseCongestionMarkingInterval = *params.baseCongestionMarkingInterval; |
| 121 | } |
| 122 | if (params.defaultCongestionThreshold) { |
| 123 | options.defaultCongestionThreshold = *params.defaultCongestionThreshold; |
| 124 | } |
| 125 | |
| 126 | auto linkService = make_unique<GenericLinkService>(options); |
Alexander Afanasyev | ded1742 | 2018-04-03 19:00:23 -0400 | [diff] [blame^] | 127 | auto faceScope = m_determineFaceScope(socket.local_endpoint().address(), |
| 128 | socket.remote_endpoint().address()); |
| 129 | auto transport = make_unique<TcpTransport>(std::move(socket), params.persistency, faceScope); |
Junxiao Shi | cde37ad | 2015-12-24 01:02:05 -0700 | [diff] [blame] | 130 | face = make_shared<Face>(std::move(linkService), std::move(transport)); |
Steve DiBenedetto | 2aa4eca | 2014-06-20 10:47:40 -0600 | [diff] [blame] | 131 | |
Davide Pesavento | 292e5e1 | 2015-03-13 02:08:33 +0100 | [diff] [blame] | 132 | m_channelFaces[remoteEndpoint] = face; |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 133 | connectFaceClosedSignal(*face, [this, remoteEndpoint] { m_channelFaces.erase(remoteEndpoint); }); |
Davide Pesavento | 292e5e1 | 2015-03-13 02:08:33 +0100 | [diff] [blame] | 134 | } |
| 135 | else { |
| 136 | // we already have a face for this endpoint, just reuse it |
| 137 | face = it->second; |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 138 | NFD_LOG_CHAN_TRACE("Reusing existing face for " << remoteEndpoint); |
Junxiao Shi | 61e3cc5 | 2014-03-03 20:40:28 -0700 | [diff] [blame] | 139 | |
Davide Pesavento | 292e5e1 | 2015-03-13 02:08:33 +0100 | [diff] [blame] | 140 | boost::system::error_code error; |
| 141 | socket.shutdown(ip::tcp::socket::shutdown_both, error); |
| 142 | socket.close(error); |
| 143 | } |
Alexander Afanasyev | a0a10fb | 2014-02-13 19:56:15 -0800 | [diff] [blame] | 144 | |
Steve DiBenedetto | 2aa4eca | 2014-06-20 10:47:40 -0600 | [diff] [blame] | 145 | // Need to invoke the callback regardless of whether or not we have already created |
| 146 | // the face so that control responses and such can be sent. |
Alexander Afanasyev | a0a10fb | 2014-02-13 19:56:15 -0800 | [diff] [blame] | 147 | onFaceCreated(face); |
Alexander Afanasyev | a16abd2 | 2014-01-31 18:12:29 -0800 | [diff] [blame] | 148 | } |
| 149 | |
| 150 | void |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 151 | TcpChannel::accept(const FaceCreatedCallback& onFaceCreated, |
Davide Pesavento | 47ab029 | 2015-11-02 18:45:39 +0100 | [diff] [blame] | 152 | const FaceCreationFailedCallback& onAcceptFailed) |
Alexander Afanasyev | a0a10fb | 2014-02-13 19:56:15 -0800 | [diff] [blame] | 153 | { |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 154 | m_acceptor.async_accept(m_socket, bind(&TcpChannel::handleAccept, this, |
| 155 | boost::asio::placeholders::error, |
| 156 | onFaceCreated, onAcceptFailed)); |
Alexander Afanasyev | a0a10fb | 2014-02-13 19:56:15 -0800 | [diff] [blame] | 157 | } |
| 158 | |
| 159 | void |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 160 | TcpChannel::handleAccept(const boost::system::error_code& error, |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 161 | const FaceCreatedCallback& onFaceCreated, |
Davide Pesavento | 47ab029 | 2015-11-02 18:45:39 +0100 | [diff] [blame] | 162 | const FaceCreationFailedCallback& onAcceptFailed) |
Alexander Afanasyev | 8ad71ba | 2014-01-27 00:07:14 -0800 | [diff] [blame] | 163 | { |
| 164 | if (error) { |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 165 | if (error != boost::asio::error::operation_aborted) { |
| 166 | NFD_LOG_CHAN_DEBUG("Accept failed: " << error.message()); |
| 167 | if (onAcceptFailed) |
| 168 | onAcceptFailed(500, "Accept failed: " + error.message()); |
| 169 | } |
Alexander Afanasyev | 8ad71ba | 2014-01-27 00:07:14 -0800 | [diff] [blame] | 170 | return; |
| 171 | } |
| 172 | |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 173 | NFD_LOG_CHAN_TRACE("Incoming connection from " << m_socket.remote_endpoint()); |
Davide Pesavento | 15b5505 | 2018-01-27 19:09:28 -0500 | [diff] [blame] | 174 | |
| 175 | FaceParams params; |
| 176 | params.persistency = ndn::nfd::FACE_PERSISTENCY_ON_DEMAND; |
| 177 | createFace(std::move(m_socket), params, onFaceCreated); |
Alexander Afanasyev | 334b714 | 2014-01-28 12:59:39 -0800 | [diff] [blame] | 178 | |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 179 | // prepare accepting the next connection |
| 180 | accept(onFaceCreated, onAcceptFailed); |
Alexander Afanasyev | 8ad71ba | 2014-01-27 00:07:14 -0800 | [diff] [blame] | 181 | } |
| 182 | |
| 183 | void |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 184 | TcpChannel::handleConnect(const boost::system::error_code& error, |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 185 | const tcp::Endpoint& remoteEndpoint, |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 186 | const shared_ptr<ip::tcp::socket>& socket, |
Davide Pesavento | 15b5505 | 2018-01-27 19:09:28 -0500 | [diff] [blame] | 187 | const FaceParams& params, |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 188 | const scheduler::EventId& connectTimeoutEvent, |
| 189 | const FaceCreatedCallback& onFaceCreated, |
Davide Pesavento | 47ab029 | 2015-11-02 18:45:39 +0100 | [diff] [blame] | 190 | const FaceCreationFailedCallback& onConnectFailed) |
Alexander Afanasyev | 8ad71ba | 2014-01-27 00:07:14 -0800 | [diff] [blame] | 191 | { |
Alexander Afanasyev | 1886180 | 2014-06-13 17:49:03 -0700 | [diff] [blame] | 192 | scheduler::cancel(connectTimeoutEvent); |
Alexander Afanasyev | 8ad71ba | 2014-01-27 00:07:14 -0800 | [diff] [blame] | 193 | |
Alexander Afanasyev | 7465d5f | 2014-07-07 10:19:42 -0700 | [diff] [blame] | 194 | #if (BOOST_VERSION == 105400) |
| 195 | // To handle regression in Boost 1.54 |
| 196 | // https://svn.boost.org/trac/boost/ticket/8795 |
| 197 | boost::system::error_code anotherErrorCode; |
| 198 | socket->remote_endpoint(anotherErrorCode); |
| 199 | if (error || anotherErrorCode) { |
| 200 | #else |
Alexander Afanasyev | 8ad71ba | 2014-01-27 00:07:14 -0800 | [diff] [blame] | 201 | if (error) { |
Alexander Afanasyev | 7465d5f | 2014-07-07 10:19:42 -0700 | [diff] [blame] | 202 | #endif |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 203 | if (error != boost::asio::error::operation_aborted) { |
| 204 | NFD_LOG_CHAN_DEBUG("Connection to " << remoteEndpoint << " failed: " << error.message()); |
| 205 | if (onConnectFailed) |
| 206 | onConnectFailed(504, "Connection failed: " + error.message()); |
| 207 | } |
Alexander Afanasyev | 8ad71ba | 2014-01-27 00:07:14 -0800 | [diff] [blame] | 208 | return; |
| 209 | } |
| 210 | |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 211 | NFD_LOG_CHAN_TRACE("Connected to " << socket->remote_endpoint()); |
Davide Pesavento | 15b5505 | 2018-01-27 19:09:28 -0500 | [diff] [blame] | 212 | createFace(std::move(*socket), params, onFaceCreated); |
Alexander Afanasyev | 8ad71ba | 2014-01-27 00:07:14 -0800 | [diff] [blame] | 213 | } |
| 214 | |
| 215 | void |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 216 | TcpChannel::handleConnectTimeout(const tcp::Endpoint& remoteEndpoint, |
| 217 | const shared_ptr<ip::tcp::socket>& socket, |
Davide Pesavento | 47ab029 | 2015-11-02 18:45:39 +0100 | [diff] [blame] | 218 | const FaceCreationFailedCallback& onConnectFailed) |
Alexander Afanasyev | 8ad71ba | 2014-01-27 00:07:14 -0800 | [diff] [blame] | 219 | { |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 220 | NFD_LOG_CHAN_DEBUG("Connection to " << remoteEndpoint << " timed out"); |
Davide Pesavento | 6ad890a | 2015-03-09 03:43:17 +0100 | [diff] [blame] | 221 | |
| 222 | // abort the connection attempt |
| 223 | boost::system::error_code error; |
| 224 | socket->close(error); |
| 225 | |
| 226 | if (onConnectFailed) |
Davide Pesavento | 77911cc | 2017-04-08 22:12:30 -0400 | [diff] [blame] | 227 | onConnectFailed(504, "Connection timed out"); |
Alexander Afanasyev | 8ad71ba | 2014-01-27 00:07:14 -0800 | [diff] [blame] | 228 | } |
| 229 | |
Davide Pesavento | 8fd15e6 | 2017-04-06 19:58:54 -0400 | [diff] [blame] | 230 | } // namespace face |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 231 | } // namespace nfd |