NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
unix-stream-face.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
25 #include "unix-stream-face.hpp"
26 
27 namespace nfd {
28 
29 // The whole purpose of this file is to specialize the logger,
30 // otherwise, everything could be put into the header file.
31 
32 NFD_LOG_INCLASS_2TEMPLATE_SPECIALIZATION_DEFINE(StreamFace,
34  "UnixStreamFace");
35 
36 UnixStreamFace::UnixStreamFace(const FaceUri& remoteUri, const FaceUri& localUri,
37  protocol::socket socket)
38  : StreamFace<protocol, LocalFace>(remoteUri, localUri, std::move(socket), true)
39 {
40  static_assert(
41  std::is_same<std::remove_cv<protocol::socket::native_handle_type>::type, int>::value,
42  "The native handle type for UnixStreamFace sockets must be 'int'"
43  );
44 }
45 
46 } // namespace nfd
represents the underlying protocol and address used by a Face
Definition: face-uri.hpp:44
STL namespace.
UnixStreamFace(const FaceUri &remoteUri, const FaceUri &localUri, protocol::socket socket)
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38
represents a face
Definition: local-face.hpp:40