Files
NFD/daemon/face/unix-stream-face.cpp
T
Alexander Afanasyev a39b90b2aa face: Implementing Face::getUri() method
Change-Id: I9a9f774b95784e5b7ec75472f1cc6cf64c4e5d7b
Refs: #1319
2014-03-06 09:25:06 +00:00

24 lines
767 B
C++

/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (C) 2014 Named Data Networking Project
* See COPYING for copyright and distribution information.
*/
#include "unix-stream-face.hpp"
namespace nfd {
// The whole purpose of this file is to specialize the logger,
// otherwise, everything could be put into the header file.
NFD_LOG_INCLASS_2TEMPLATE_SPECIALIZATION_DEFINE(StreamFace,
UnixStreamFace::protocol, LocalFace,
"UnixStreamFace");
UnixStreamFace::UnixStreamFace(const shared_ptr<UnixStreamFace::protocol::socket>& socket)
: StreamFace<protocol, LocalFace>(FaceUri(socket->local_endpoint()), socket)
{
}
} // namespace nfd