blob: 74620301a61d357c708cb6d95abd4f0cc77ae9ff [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 Afanasyev3958b012014-01-31 15:06:13 -080011NFD_LOG_INCLASS_TEMPLATE_SPECIALIZATION_DEFINE(StreamFace, TcpFace::protocol, "TcpFace");
12
Alexander Afanasyevbd220a02014-02-20 00:29:56 -080013NFD_LOG_INCLASS_2TEMPLATE_SPECIALIZATION_DEFINE(StreamFace,
Davide Pesaventod8d4d982014-03-21 18:47:58 +010014 TcpLocalFace::protocol, LocalFace,
15 "TcpLocalFace");
Alexander Afanasyevbd220a02014-02-20 00:29:56 -080016
Alexander Afanasyev355c0662014-03-20 18:08:17 -070017TcpFace::TcpFace(const shared_ptr<TcpFace::protocol::socket>& socket, bool isOnDemand)
Junxiao Shi79494162014-04-02 18:25:11 -070018 : StreamFace<protocol>(FaceUri(socket->remote_endpoint()),
19 FaceUri(socket->local_endpoint()),
20 socket, isOnDemand)
Alexander Afanasyeva9034b02014-01-26 18:32:02 -080021{
22}
23
Junxiao Shi79494162014-04-02 18:25:11 -070024TcpLocalFace::TcpLocalFace(const shared_ptr<TcpLocalFace::protocol::socket>& socket,
25 bool isOnDemand)
26 : StreamFace<protocol, LocalFace>(FaceUri(socket->remote_endpoint()),
27 FaceUri(socket->local_endpoint()),
28 socket, isOnDemand)
Alexander Afanasyev93ce75e2014-02-18 19:45:34 -080029{
Alexander Afanasyev93ce75e2014-02-18 19:45:34 -080030}
31
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080032} // namespace nfd