blob: f010495680560d52b98ae7d33110fe62c0f04ab5 [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#ifndef NFD_FACE_TCP_FACE_HPP
8#define NFD_FACE_TCP_FACE_HPP
9
10#include "stream-face.hpp"
11
12namespace ndn
13{
14
15/**
16 * \brief Implementation of Face abstraction that uses TCP
17 * as underlying transport mechanism
18 */
19class TcpFace : public StreamFace<boost::asio::ip::tcp>
20{
21public:
22 TcpFace(FaceId id, const shared_ptr<protocol::socket>& socket);
23
24private:
25 shared_ptr<protocol::socket> m_socket;
26};
27
28} // namespace ndn
29
30#endif // NFD_FACE_TCP_FACE_HPP