tcp-transport.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_FACE_TCP_TRANSPORT_HPP
27 #define NFD_DAEMON_FACE_TCP_TRANSPORT_HPP
28 
29 #include "stream-transport.hpp"
30 
31 namespace nfd {
32 namespace face {
33 
37 class TcpTransport final : public StreamTransport<boost::asio::ip::tcp>
38 {
39 public:
40  TcpTransport(protocol::socket&& socket,
41  ndn::nfd::FacePersistency persistency);
42 
43 protected:
44  virtual void
45  beforeChangePersistency(ndn::nfd::FacePersistency newPersistency) final;
46 };
47 
48 } // namespace face
49 } // namespace nfd
50 
51 #endif // NFD_DAEMON_FACE_TCP_TRANSPORT_HPP
virtual void beforeChangePersistency(ndn::nfd::FacePersistency newPersistency) final
invoked before persistency is changed
TcpTransport(protocol::socket &&socket, ndn::nfd::FacePersistency persistency)
Implements Transport for stream-based protocols.
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: algorithm.hpp:32
A Transport that communicates on a connected TCP socket.