NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
tcp-transport.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
25 #ifndef NFD_DAEMON_FACE_TCP_TRANSPORT_HPP
26 #define NFD_DAEMON_FACE_TCP_TRANSPORT_HPP
27 
28 #include "stream-transport.hpp"
29 
30 namespace nfd {
31 namespace face {
32 
36 class TcpTransport DECL_CLASS_FINAL : public StreamTransport<boost::asio::ip::tcp>
37 {
38 public:
39  TcpTransport(protocol::socket&& socket,
40  ndn::nfd::FacePersistency persistency);
41 
42 protected:
43  virtual void
44  beforeChangePersistency(ndn::nfd::FacePersistency newPersistency) DECL_FINAL;
45 };
46 
47 } // namespace face
48 } // namespace nfd
49 
50 #endif // NFD_DAEMON_FACE_TCP_TRANSPORT_HPP
#define DECL_CLASS_FINAL
expands to &#39;final&#39; if compiler supports &#39;final&#39; specifier on class, otherwise expands to nothing ...
Definition: common.hpp:70
#define DECL_FINAL
expands to &#39;final&#39; if compiler supports &#39;final&#39; specifier on method, otherwise expands to nothing ...
Definition: common.hpp:60
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40