Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
Eric Newberry | b49313d | 2017-12-24 20:22:27 -0700 | [diff] [blame] | 2 | /* |
Davide Pesavento | 91c15c8 | 2024-01-15 17:14:23 -0500 | [diff] [blame] | 3 | * Copyright (c) 2014-2024, Regents of the University of California, |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -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. |
| 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/>. |
| 24 | */ |
| 25 | |
| 26 | #ifndef NFD_DAEMON_FACE_STREAM_TRANSPORT_HPP |
| 27 | #define NFD_DAEMON_FACE_STREAM_TRANSPORT_HPP |
| 28 | |
| 29 | #include "transport.hpp" |
Eric Newberry | b49313d | 2017-12-24 20:22:27 -0700 | [diff] [blame] | 30 | #include "socket-utils.hpp" |
Davide Pesavento | 2cae8ca | 2019-04-18 20:48:05 -0400 | [diff] [blame] | 31 | #include "common/global.hpp" |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 32 | |
Davide Pesavento | 2fae1d0 | 2024-06-08 20:02:27 -0400 | [diff] [blame] | 33 | #include <array> |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 34 | #include <queue> |
| 35 | |
Davide Pesavento | 5d64263 | 2023-10-03 00:36:08 -0400 | [diff] [blame] | 36 | #include <boost/asio/defer.hpp> |
Davide Pesavento | a9b09b6 | 2022-06-04 14:07:25 -0400 | [diff] [blame] | 37 | #include <boost/asio/write.hpp> |
| 38 | |
Davide Pesavento | e422f9e | 2022-06-03 01:30:23 -0400 | [diff] [blame] | 39 | namespace nfd::face { |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 40 | |
Davide Pesavento | c0df94e | 2023-10-08 19:26:55 -0400 | [diff] [blame] | 41 | /** |
| 42 | * \brief Implements a Transport for stream-based protocols. |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 43 | * |
Davide Pesavento | c0df94e | 2023-10-08 19:26:55 -0400 | [diff] [blame] | 44 | * \tparam Protocol a stream-based protocol in Boost.Asio |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 45 | */ |
| 46 | template<class Protocol> |
| 47 | class StreamTransport : public Transport |
| 48 | { |
| 49 | public: |
Davide Pesavento | a599d2a | 2022-02-16 18:52:43 -0500 | [diff] [blame] | 50 | using protocol = Protocol; |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 51 | |
Davide Pesavento | c0df94e | 2023-10-08 19:26:55 -0400 | [diff] [blame] | 52 | /** |
| 53 | * \brief Construct stream transport. |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 54 | * |
Davide Pesavento | c0df94e | 2023-10-08 19:26:55 -0400 | [diff] [blame] | 55 | * \param socket Protocol-specific socket for the created transport |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 56 | */ |
| 57 | explicit |
| 58 | StreamTransport(typename protocol::socket&& socket); |
| 59 | |
Eric Newberry | b49313d | 2017-12-24 20:22:27 -0700 | [diff] [blame] | 60 | ssize_t |
| 61 | getSendQueueLength() override; |
| 62 | |
Davide Pesavento | 8728a25 | 2015-11-06 04:01:22 +0100 | [diff] [blame] | 63 | protected: |
Davide Pesavento | 1816d4b | 2017-07-02 12:20:48 -0400 | [diff] [blame] | 64 | void |
Davide Pesavento | b84bd3a | 2016-04-22 02:21:45 +0200 | [diff] [blame] | 65 | doClose() override; |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 66 | |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 67 | void |
| 68 | deferredClose(); |
| 69 | |
Davide Pesavento | 1816d4b | 2017-07-02 12:20:48 -0400 | [diff] [blame] | 70 | void |
Teng Liang | 13d582a | 2020-07-21 20:23:11 -0700 | [diff] [blame] | 71 | doSend(const Block& packet) override; |
Davide Pesavento | 8728a25 | 2015-11-06 04:01:22 +0100 | [diff] [blame] | 72 | |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 73 | void |
| 74 | sendFromQueue(); |
| 75 | |
| 76 | void |
| 77 | handleSend(const boost::system::error_code& error, |
| 78 | size_t nBytesSent); |
| 79 | |
| 80 | void |
Weiwei Liu | dcdf621 | 2016-08-31 14:34:22 -0700 | [diff] [blame] | 81 | startReceive(); |
| 82 | |
| 83 | void |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 84 | handleReceive(const boost::system::error_code& error, |
| 85 | size_t nBytesReceived); |
| 86 | |
| 87 | void |
| 88 | processErrorCode(const boost::system::error_code& error); |
| 89 | |
Weiwei Liu | dcdf621 | 2016-08-31 14:34:22 -0700 | [diff] [blame] | 90 | virtual void |
| 91 | handleError(const boost::system::error_code& error); |
| 92 | |
| 93 | void |
| 94 | resetReceiveBuffer(); |
| 95 | |
| 96 | void |
| 97 | resetSendQueue(); |
| 98 | |
Eric Newberry | b49313d | 2017-12-24 20:22:27 -0700 | [diff] [blame] | 99 | size_t |
| 100 | getSendQueueBytes() const; |
| 101 | |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 102 | protected: |
| 103 | typename protocol::socket m_socket; |
| 104 | |
Davide Pesavento | a314808 | 2018-04-12 18:21:54 -0400 | [diff] [blame] | 105 | NFD_LOG_MEMBER_DECL(); |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 106 | |
| 107 | private: |
Davide Pesavento | 91c15c8 | 2024-01-15 17:14:23 -0500 | [diff] [blame] | 108 | size_t m_sendQueueBytes = 0; |
Davide Pesavento | 2fae1d0 | 2024-06-08 20:02:27 -0400 | [diff] [blame] | 109 | std::queue<Block> m_sendQueue; |
| 110 | size_t m_receiveBufferSize = 0; |
| 111 | std::array<uint8_t, ndn::MAX_NDN_PACKET_SIZE> m_receiveBuffer; |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 112 | }; |
| 113 | |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 114 | |
| 115 | template<class T> |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 116 | StreamTransport<T>::StreamTransport(typename StreamTransport::protocol::socket&& socket) |
| 117 | : m_socket(std::move(socket)) |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 118 | { |
Eric Newberry | b49313d | 2017-12-24 20:22:27 -0700 | [diff] [blame] | 119 | // No queue capacity is set because there is no theoretical limit to the size of m_sendQueue. |
| 120 | // Therefore, protecting against send queue overflows is less critical than in other transport |
| 121 | // types. Instead, we use the default threshold specified in the GenericLinkService options. |
| 122 | |
Weiwei Liu | dcdf621 | 2016-08-31 14:34:22 -0700 | [diff] [blame] | 123 | startReceive(); |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 124 | } |
| 125 | |
| 126 | template<class T> |
Eric Newberry | b49313d | 2017-12-24 20:22:27 -0700 | [diff] [blame] | 127 | ssize_t |
| 128 | StreamTransport<T>::getSendQueueLength() |
| 129 | { |
| 130 | ssize_t queueLength = getTxQueueLength(m_socket.native_handle()); |
| 131 | if (queueLength == QUEUE_ERROR) { |
| 132 | NFD_LOG_FACE_WARN("Failed to obtain send queue length from socket: " << std::strerror(errno)); |
| 133 | } |
| 134 | return getSendQueueBytes() + std::max<ssize_t>(0, queueLength); |
| 135 | } |
| 136 | |
| 137 | template<class T> |
Davide Pesavento | 8728a25 | 2015-11-06 04:01:22 +0100 | [diff] [blame] | 138 | void |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 139 | StreamTransport<T>::doClose() |
| 140 | { |
| 141 | NFD_LOG_FACE_TRACE(__func__); |
| 142 | |
| 143 | if (m_socket.is_open()) { |
| 144 | // Cancel all outstanding operations and shutdown the socket |
| 145 | // so that no further sends or receives are possible. |
| 146 | // Use the non-throwing variants and ignore errors, if any. |
| 147 | boost::system::error_code error; |
| 148 | m_socket.cancel(error); |
Davide Pesavento | d91fe6d | 2023-10-04 21:40:02 -0400 | [diff] [blame] | 149 | m_socket.shutdown(boost::asio::socket_base::shutdown_both, error); |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 150 | } |
| 151 | |
| 152 | // Ensure that the Transport stays alive at least until |
| 153 | // all pending handlers are dispatched |
Davide Pesavento | 5d64263 | 2023-10-03 00:36:08 -0400 | [diff] [blame] | 154 | boost::asio::defer(getGlobalIoService(), [this] { deferredClose(); }); |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 155 | |
Davide Pesavento | 1816d4b | 2017-07-02 12:20:48 -0400 | [diff] [blame] | 156 | // Some bug or feature of Boost.Asio (see https://redmine.named-data.net/issues/1856): |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 157 | // |
| 158 | // When doClose is called from a socket event handler (e.g., from handleReceive), |
| 159 | // m_socket.shutdown() does not trigger the cancellation of the handleSend callback. |
| 160 | // Instead, handleSend is invoked as nothing bad happened. |
| 161 | // |
| 162 | // In order to prevent the assertion in handleSend from failing, we clear the queue |
| 163 | // and close the socket in deferredClose, i.e., after all callbacks scheduled up to |
| 164 | // this point have been executed. If more send operations are scheduled after this |
| 165 | // point, they will fail because the socket has been shutdown, and their callbacks |
| 166 | // will be invoked with error code == asio::error::shut_down. |
| 167 | } |
| 168 | |
| 169 | template<class T> |
Davide Pesavento | 8728a25 | 2015-11-06 04:01:22 +0100 | [diff] [blame] | 170 | void |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 171 | StreamTransport<T>::deferredClose() |
| 172 | { |
| 173 | NFD_LOG_FACE_TRACE(__func__); |
| 174 | |
Weiwei Liu | dcdf621 | 2016-08-31 14:34:22 -0700 | [diff] [blame] | 175 | resetSendQueue(); |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 176 | |
| 177 | // use the non-throwing variant and ignore errors, if any |
| 178 | boost::system::error_code error; |
| 179 | m_socket.close(error); |
| 180 | |
| 181 | this->setState(TransportState::CLOSED); |
| 182 | } |
| 183 | |
| 184 | template<class T> |
Davide Pesavento | 8728a25 | 2015-11-06 04:01:22 +0100 | [diff] [blame] | 185 | void |
Teng Liang | 13d582a | 2020-07-21 20:23:11 -0700 | [diff] [blame] | 186 | StreamTransport<T>::doSend(const Block& packet) |
Davide Pesavento | 8728a25 | 2015-11-06 04:01:22 +0100 | [diff] [blame] | 187 | { |
| 188 | NFD_LOG_FACE_TRACE(__func__); |
| 189 | |
Weiwei Liu | dcdf621 | 2016-08-31 14:34:22 -0700 | [diff] [blame] | 190 | if (getState() != TransportState::UP) |
| 191 | return; |
| 192 | |
Davide Pesavento | 8728a25 | 2015-11-06 04:01:22 +0100 | [diff] [blame] | 193 | bool wasQueueEmpty = m_sendQueue.empty(); |
Davide Pesavento | b3a23ca | 2019-05-04 20:40:21 -0400 | [diff] [blame] | 194 | m_sendQueue.push(packet); |
| 195 | m_sendQueueBytes += packet.size(); |
Davide Pesavento | 8728a25 | 2015-11-06 04:01:22 +0100 | [diff] [blame] | 196 | |
| 197 | if (wasQueueEmpty) |
| 198 | sendFromQueue(); |
| 199 | } |
| 200 | |
| 201 | template<class T> |
| 202 | void |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 203 | StreamTransport<T>::sendFromQueue() |
| 204 | { |
| 205 | boost::asio::async_write(m_socket, boost::asio::buffer(m_sendQueue.front()), |
Davide Pesavento | e4b2238 | 2018-06-10 14:37:24 -0400 | [diff] [blame] | 206 | [this] (auto&&... args) { this->handleSend(std::forward<decltype(args)>(args)...); }); |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 207 | } |
| 208 | |
| 209 | template<class T> |
Davide Pesavento | 8728a25 | 2015-11-06 04:01:22 +0100 | [diff] [blame] | 210 | void |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 211 | StreamTransport<T>::handleSend(const boost::system::error_code& error, |
| 212 | size_t nBytesSent) |
| 213 | { |
| 214 | if (error) |
| 215 | return processErrorCode(error); |
| 216 | |
| 217 | NFD_LOG_FACE_TRACE("Successfully sent: " << nBytesSent << " bytes"); |
| 218 | |
| 219 | BOOST_ASSERT(!m_sendQueue.empty()); |
Eric Newberry | b49313d | 2017-12-24 20:22:27 -0700 | [diff] [blame] | 220 | BOOST_ASSERT(m_sendQueue.front().size() == nBytesSent); |
| 221 | m_sendQueueBytes -= nBytesSent; |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 222 | m_sendQueue.pop(); |
| 223 | |
| 224 | if (!m_sendQueue.empty()) |
| 225 | sendFromQueue(); |
| 226 | } |
| 227 | |
| 228 | template<class T> |
Davide Pesavento | 8728a25 | 2015-11-06 04:01:22 +0100 | [diff] [blame] | 229 | void |
Weiwei Liu | dcdf621 | 2016-08-31 14:34:22 -0700 | [diff] [blame] | 230 | StreamTransport<T>::startReceive() |
| 231 | { |
| 232 | BOOST_ASSERT(getState() == TransportState::UP); |
| 233 | |
Davide Pesavento | 2fae1d0 | 2024-06-08 20:02:27 -0400 | [diff] [blame] | 234 | m_socket.async_receive(boost::asio::buffer(m_receiveBuffer.data() + m_receiveBufferSize, |
| 235 | m_receiveBuffer.size() - m_receiveBufferSize), |
Davide Pesavento | e4b2238 | 2018-06-10 14:37:24 -0400 | [diff] [blame] | 236 | [this] (auto&&... args) { this->handleReceive(std::forward<decltype(args)>(args)...); }); |
Weiwei Liu | dcdf621 | 2016-08-31 14:34:22 -0700 | [diff] [blame] | 237 | } |
| 238 | |
| 239 | template<class T> |
| 240 | void |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 241 | StreamTransport<T>::handleReceive(const boost::system::error_code& error, |
| 242 | size_t nBytesReceived) |
| 243 | { |
| 244 | if (error) |
| 245 | return processErrorCode(error); |
| 246 | |
| 247 | NFD_LOG_FACE_TRACE("Received: " << nBytesReceived << " bytes"); |
| 248 | |
Davide Pesavento | 8728a25 | 2015-11-06 04:01:22 +0100 | [diff] [blame] | 249 | m_receiveBufferSize += nBytesReceived; |
Davide Pesavento | 08c2fbb | 2024-06-09 16:40:28 -0400 | [diff] [blame] | 250 | auto unparsedBytes = ndn::make_span(m_receiveBuffer).first(m_receiveBufferSize); |
Davide Pesavento | 2fae1d0 | 2024-06-08 20:02:27 -0400 | [diff] [blame] | 251 | while (!unparsedBytes.empty()) { |
| 252 | auto [isOk, element] = Block::fromBuffer(unparsedBytes); |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 253 | if (!isOk) |
| 254 | break; |
| 255 | |
Davide Pesavento | 2fae1d0 | 2024-06-08 20:02:27 -0400 | [diff] [blame] | 256 | unparsedBytes = unparsedBytes.subspan(element.size()); |
Davide Pesavento | b3a23ca | 2019-05-04 20:40:21 -0400 | [diff] [blame] | 257 | this->receive(element); |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 258 | } |
| 259 | |
Davide Pesavento | 2fae1d0 | 2024-06-08 20:02:27 -0400 | [diff] [blame] | 260 | if (unparsedBytes.empty()) { |
| 261 | // nothing left in the receive buffer |
| 262 | m_receiveBufferSize = 0; |
| 263 | } |
| 264 | else if (unparsedBytes.data() != m_receiveBuffer.data()) { |
| 265 | // move remaining unparsed bytes to the beginning of the receive buffer |
| 266 | std::copy(unparsedBytes.begin(), unparsedBytes.end(), m_receiveBuffer.begin()); |
| 267 | m_receiveBufferSize = unparsedBytes.size(); |
| 268 | } |
| 269 | else if (unparsedBytes.size() == m_receiveBuffer.size()) { |
Davide Pesavento | 1816d4b | 2017-07-02 12:20:48 -0400 | [diff] [blame] | 270 | NFD_LOG_FACE_ERROR("Failed to parse incoming packet or packet too large to process"); |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 271 | this->setState(TransportState::FAILED); |
| 272 | doClose(); |
| 273 | return; |
| 274 | } |
| 275 | |
Weiwei Liu | dcdf621 | 2016-08-31 14:34:22 -0700 | [diff] [blame] | 276 | startReceive(); |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 277 | } |
| 278 | |
| 279 | template<class T> |
Davide Pesavento | 8728a25 | 2015-11-06 04:01:22 +0100 | [diff] [blame] | 280 | void |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 281 | StreamTransport<T>::processErrorCode(const boost::system::error_code& error) |
| 282 | { |
| 283 | NFD_LOG_FACE_TRACE(__func__); |
| 284 | |
| 285 | if (getState() == TransportState::CLOSING || |
| 286 | getState() == TransportState::FAILED || |
| 287 | getState() == TransportState::CLOSED || |
| 288 | error == boost::asio::error::operation_aborted || // when cancel() is called |
| 289 | error == boost::asio::error::shut_down) // after shutdown() is called |
| 290 | // transport is shutting down, ignore any errors |
| 291 | return; |
| 292 | |
Weiwei Liu | dcdf621 | 2016-08-31 14:34:22 -0700 | [diff] [blame] | 293 | handleError(error); |
| 294 | } |
| 295 | |
| 296 | template<class T> |
| 297 | void |
| 298 | StreamTransport<T>::handleError(const boost::system::error_code& error) |
| 299 | { |
Davide Pesavento | 68ab43d | 2017-07-02 13:37:35 -0400 | [diff] [blame] | 300 | if (error == boost::asio::error::eof) { |
| 301 | this->setState(TransportState::CLOSING); |
| 302 | } |
| 303 | else { |
Davide Pesavento | 1816d4b | 2017-07-02 12:20:48 -0400 | [diff] [blame] | 304 | NFD_LOG_FACE_ERROR("Send or receive operation failed: " << error.message()); |
Davide Pesavento | 68ab43d | 2017-07-02 13:37:35 -0400 | [diff] [blame] | 305 | this->setState(TransportState::FAILED); |
| 306 | } |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 307 | doClose(); |
| 308 | } |
| 309 | |
Weiwei Liu | dcdf621 | 2016-08-31 14:34:22 -0700 | [diff] [blame] | 310 | template<class T> |
| 311 | void |
| 312 | StreamTransport<T>::resetReceiveBuffer() |
| 313 | { |
| 314 | m_receiveBufferSize = 0; |
| 315 | } |
| 316 | |
| 317 | template<class T> |
| 318 | void |
| 319 | StreamTransport<T>::resetSendQueue() |
| 320 | { |
| 321 | std::queue<Block> emptyQueue; |
| 322 | std::swap(emptyQueue, m_sendQueue); |
Eric Newberry | b49313d | 2017-12-24 20:22:27 -0700 | [diff] [blame] | 323 | m_sendQueueBytes = 0; |
| 324 | } |
| 325 | |
| 326 | template<class T> |
| 327 | size_t |
| 328 | StreamTransport<T>::getSendQueueBytes() const |
| 329 | { |
| 330 | return m_sendQueueBytes; |
Weiwei Liu | dcdf621 | 2016-08-31 14:34:22 -0700 | [diff] [blame] | 331 | } |
| 332 | |
Davide Pesavento | e422f9e | 2022-06-03 01:30:23 -0400 | [diff] [blame] | 333 | } // namespace nfd::face |
Yukai Tu | 74c895d | 2015-09-21 01:11:51 -0700 | [diff] [blame] | 334 | |
| 335 | #endif // NFD_DAEMON_FACE_STREAM_TRANSPORT_HPP |