NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
unix-stream-face.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
25 #ifndef NFD_DAEMON_FACE_UNIX_STREAM_FACE_HPP
26 #define NFD_DAEMON_FACE_UNIX_STREAM_FACE_HPP
27 
28 #include "stream-face.hpp"
29 
30 #ifndef HAVE_UNIX_SOCKETS
31 #error "Cannot include this file when UNIX sockets are not available"
32 #endif
33 
34 namespace nfd {
35 
40 class UnixStreamFace : public StreamFace<boost::asio::local::stream_protocol, LocalFace>
41 {
42 public:
43  UnixStreamFace(const FaceUri& remoteUri, const FaceUri& localUri,
44  protocol::socket socket);
45 };
46 
47 } // namespace nfd
48 
49 #endif // NFD_DAEMON_FACE_UNIX_STREAM_FACE_HPP
represents the underlying protocol and address used by a Face
Definition: face-uri.hpp:44
Implementation of Face abstraction that uses stream-oriented Unix domain sockets as underlying transp...
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