#include <unix-transport.hpp>


Public Member Functions | |
| UnixTransport (const std::string &unixSocket) | |
| Create Unix transport based on the socket specified in a well-known configuration file or fallback to /var/run/nfd.sock. More... | |
| ~UnixTransport () | |
| virtual void | connect (boost::asio::io_service &ioService, const ReceiveCallback &receiveCallback) |
| Connect transport. More... | |
| virtual void | close () |
| Close the connection. More... | |
| virtual void | pause () |
| virtual void | resume () |
| virtual void | send (const Block &wire) |
| Send block of data from. More... | |
| virtual void | send (const Block &header, const Block &payload) |
| Alternative version of sending data, applying scatter/gather I/O concept. More... | |
Public Member Functions inherited from ndn::Transport | |
| Transport () | |
| virtual | ~Transport () |
| bool | isConnected () |
| bool | isExpectingData () |
Static Public Member Functions | |
| static shared_ptr< UnixTransport > | create (const ConfigFile &config) |
Public Attributes | |
| NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE | __pad0__: static std::string getDefaultSocketName(const ConfigFile& config) |
Friends | |
| class | StreamTransportImpl< UnixTransport, boost::asio::local::stream_protocol > |
Additional Inherited Members | |
Public Types inherited from ndn::Transport | |
| typedef function< void(const Block &wire)> | ReceiveCallback |
| typedef function< void()> | ErrorCallback |
Protected Member Functions inherited from ndn::Transport | |
| void | receive (const Block &wire) |
Protected Attributes inherited from ndn::Transport | |
| boost::asio::io_service * | m_ioService |
| bool | m_isConnected |
| bool | m_isExpectingData |
| ReceiveCallback | m_receiveCallback |
Definition at line 38 of file unix-transport.hpp.
| ndn::UnixTransport::UnixTransport | ( | const std::string & | unixSocket | ) |
Create Unix transport based on the socket specified in a well-known configuration file or fallback to /var/run/nfd.sock.
| Throws | UnixTransport::Error on failure to parse a discovered configuration file |
Definition at line 32 of file unix-transport.cpp.
| ndn::UnixTransport::~UnixTransport | ( | ) |
Definition at line 37 of file unix-transport.cpp.
References ndn::ConfigFile::getParsedConfiguration(), ndn::util::FaceUri::getPath(), and ndn::util::FaceUri::getScheme().
|
virtual |
Connect transport.
| boost::system::system_error | if connection cannot be established |
Reimplemented from ndn::Transport.
Definition at line 85 of file unix-transport.cpp.
References ndn::Transport::connect().
|
virtual |
|
virtual |
Implements ndn::Transport.
Definition at line 120 of file unix-transport.cpp.
|
virtual |
Implements ndn::Transport.
Definition at line 128 of file unix-transport.cpp.
|
virtual |
Send block of data from.
| wire | through the transport |
| wire | A block of data to send |
Implements ndn::Transport.
Definition at line 98 of file unix-transport.cpp.
Alternative version of sending data, applying scatter/gather I/O concept.
Two non-consecutive memory blocks will be send out together, e.g., as part of the same message in datagram-oriented transports.
Implements ndn::Transport.
Definition at line 105 of file unix-transport.cpp.
|
static |
Definition at line 79 of file unix-transport.cpp.
|
friend |
Definition at line 89 of file unix-transport.hpp.
| NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE ndn::UnixTransport::__pad0__ |
Definition at line 83 of file unix-transport.hpp.