#include <unix-stream-factory.hpp>
Classes | |
struct | Error |
Exception of UnixStreamFactory. More... | |
Public Member Functions | |
shared_ptr< UnixStreamChannel > | createChannel (const std::string &unixSocketPath) |
Create stream-oriented Unix channel using specified socket path. More... | |
virtual void | createFace (const FaceUri &uri, ndn::nfd::FacePersistency persistency, const FaceCreatedCallback &onCreated, const FaceConnectFailedCallback &onConnectFailed) 1 |
Try to create Face using the supplied FaceUri. More... | |
virtual std::list< shared_ptr< const Channel > > | getChannels () const |
Definition at line 34 of file unix-stream-factory.hpp.
shared_ptr< UnixStreamChannel > nfd::UnixStreamFactory::createChannel | ( | const std::string & | unixSocketPath | ) |
Create stream-oriented Unix channel using specified socket path.
If this method is called twice with the same path, only one channel will be created. The second call will just retrieve the existing channel.
UnixStreamFactory::Error |
Definition at line 33 of file unix-stream-factory.cpp.
|
virtual |
Try to create Face using the supplied FaceUri.
This method should automatically choose channel, based on supplied FaceUri and create face.
Error | Factory does not support connect operation |
Error | specified persistency is not supported |
Implements nfd::ProtocolFactory.
Definition at line 59 of file unix-stream-factory.cpp.
|
virtual |
Implements nfd::ProtocolFactory.
Definition at line 68 of file unix-stream-factory.cpp.