blob: 6f85a213cddfe5459d97029b5e39b772056c053d [file] [log] [blame]
Alexander Afanasyeva9034b02014-01-26 18:32:02 -08001/* -*- 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 "tcp-face.hpp"
8
Alexander Afanasyev18bbf812014-01-29 01:40:23 -08009namespace nfd {
Alexander Afanasyeva9034b02014-01-26 18:32:02 -080010
Alexander Afanasyeva0a10fb2014-02-13 19:56:15 -080011// The whole purpose of this file is to specialize the logger,
12// otherwise, everything could be put into the header file.
13
Alexander Afanasyev3958b012014-01-31 15:06:13 -080014NFD_LOG_INCLASS_TEMPLATE_SPECIALIZATION_DEFINE(StreamFace, TcpFace::protocol, "TcpFace");
15
Alexander Afanasyevbd220a02014-02-20 00:29:56 -080016NFD_LOG_INCLASS_2TEMPLATE_SPECIALIZATION_DEFINE(StreamFace,
17 TcpLocalFace::protocol, LocalFace, "TcpLocalFace");
18
Junxiao Shi8c8d2182014-01-30 22:33:00 -070019TcpFace::TcpFace(const shared_ptr<TcpFace::protocol::socket>& socket)
Alexander Afanasyeva39b90b2014-03-05 15:31:00 +000020 : StreamFace<protocol>(FaceUri(socket->remote_endpoint()), socket)
Alexander Afanasyeva9034b02014-01-26 18:32:02 -080021{
22}
23
Alexander Afanasyevbd220a02014-02-20 00:29:56 -080024//
25
26TcpLocalFace::TcpLocalFace(const shared_ptr<TcpLocalFace::protocol::socket>& socket)
Alexander Afanasyeva39b90b2014-03-05 15:31:00 +000027 : StreamFace<protocol, LocalFace>(FaceUri(socket->remote_endpoint()), socket)
Alexander Afanasyev93ce75e2014-02-18 19:45:34 -080028{
Alexander Afanasyev93ce75e2014-02-18 19:45:34 -080029}
30
31
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080032} // namespace nfd