blob: f010495680560d52b98ae7d33110fe62c0f04ab5 [file] [log] [blame]
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (C) 2014 Named Data Networking Project
* See COPYING for copyright and distribution information.
*/
#ifndef NFD_FACE_TCP_FACE_HPP
#define NFD_FACE_TCP_FACE_HPP
#include "stream-face.hpp"
namespace ndn
{
/**
* \brief Implementation of Face abstraction that uses TCP
* as underlying transport mechanism
*/
class TcpFace : public StreamFace<boost::asio::ip::tcp>
{
public:
TcpFace(FaceId id, const shared_ptr<protocol::socket>& socket);
private:
shared_ptr<protocol::socket> m_socket;
};
} // namespace ndn
#endif // NFD_FACE_TCP_FACE_HPP