NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
,
33
UnixStreamFace::protocol
,
LocalFace
,
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
nfd::StreamFace
Definition:
stream-face.hpp:39
ndn::util::FaceUri
represents the underlying protocol and address used by a Face
Definition:
face-uri.hpp:44
unix-stream-face.hpp
std
STL namespace.
nfd::UnixStreamFace::UnixStreamFace
UnixStreamFace(const FaceUri &remoteUri, const FaceUri &localUri, protocol::socket socket)
Definition:
unix-stream-face.cpp:36
nfd::StreamFace< boost::asio::local::stream_protocol, LocalFace >::protocol
boost::asio::local::stream_protocol protocol
Definition:
stream-face.hpp:42
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:38
nfd::LocalFace
represents a face
Definition:
local-face.hpp:40
ndnSIM
NFD
daemon
face
unix-stream-face.cpp
Generated on Tue Feb 23 2016 22:18:44 for ndnSIM by
1.8.11