blob: 02ccbb540b5ff8d72b1732587244de86fe55f829 [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_UNIX_STREAM_FACE_HPP
#define NFD_FACE_UNIX_STREAM_FACE_HPP
#include "stream-face.hpp"
#ifndef HAVE_UNIX_SOCKETS
#error "Cannot include this file when UNIX sockets are not available"
#endif
namespace nfd
{
/**
* \brief Implementation of Face abstraction that uses stream-oriented
* Unix domain sockets as underlying transport mechanism
*/
class UnixStreamFace : public StreamFace<boost::asio::local::stream_protocol, LocalFace>
{
public:
typedef boost::asio::local::stream_protocol protocol;
UnixStreamFace(const shared_ptr<protocol::socket>& socket);
};
} // namespace nfd
#endif // NFD_FACE_UNIX_STREAM_FACE_HPP