NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
tcp-face.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
25 #include "tcp-face.hpp"
26 
27 namespace nfd {
28 
29 NFD_LOG_INCLASS_TEMPLATE_SPECIALIZATION_DEFINE(StreamFace, TcpFace::protocol, "TcpFace");
30 
31 NFD_LOG_INCLASS_2TEMPLATE_SPECIALIZATION_DEFINE(StreamFace,
33  "TcpLocalFace");
34 
35 TcpFace::TcpFace(const FaceUri& remoteUri, const FaceUri& localUri,
36  protocol::socket socket, bool isOnDemand)
37  : StreamFace<protocol>(remoteUri, localUri, std::move(socket), isOnDemand)
38 {
39 }
40 
41 TcpLocalFace::TcpLocalFace(const FaceUri& remoteUri, const FaceUri& localUri,
42  protocol::socket socket, bool isOnDemand)
43  : StreamFace<protocol, LocalFace>(remoteUri, localUri, std::move(socket), isOnDemand)
44 {
45 }
46 
47 } // namespace nfd
TcpFace(const FaceUri &remoteUri, const FaceUri &localUri, protocol::socket socket, bool isOnDemand)
Definition: tcp-face.cpp:35
represents the underlying protocol and address used by a Face
Definition: face-uri.hpp:44
STL namespace.
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38
represents a face
Definition: local-face.hpp:40
TcpLocalFace(const FaceUri &remoteUri, const FaceUri &localUri, protocol::socket socket, bool isOnDemand)
Definition: tcp-face.cpp:41