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