blob: de7c4f9963bbd8705cdcb90b893b93e3156802ae [file] [log] [blame]
Davide Pesaventobc4dd8c2014-02-14 20:01:01 +01001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (C) 2014 Named Data Networking Project
4 * See COPYING for copyright and distribution information.
5 */
6
7#include "unix-stream-face.hpp"
8
9namespace nfd {
10
11// The whole purpose of this file is to specialize the logger,
12// otherwise, everything could be put into the header file.
13
14NFD_LOG_INCLASS_TEMPLATE_SPECIALIZATION_DEFINE(StreamFace, UnixStreamFace::protocol, "UnixStreamFace");
15
16UnixStreamFace::UnixStreamFace(const shared_ptr<UnixStreamFace::protocol::socket>& socket)
17 : StreamFace<protocol>(socket)
18{
19}
20
21bool
22UnixStreamFace::isLocal() const
23{
24 return true;
25}
26
27} // namespace nfd