26 #ifndef NFD_DAEMON_FACE_NULL_TRANSPORT_HPP
27 #define NFD_DAEMON_FACE_NULL_TRANSPORT_HPP
40 const FaceUri& remoteUri = FaceUri(
"null://"),
41 ndn::nfd::FaceScope scope = ndn::nfd::FACE_SCOPE_NON_LOCAL,
42 ndn::nfd::FacePersistency persistency = ndn::nfd::FACE_PERSISTENCY_PERMANENT);
A Transport that drops every packet.
void doClose() final
Performs Transport specific operations to close the transport.
NullTransport(const FaceUri &localUri=FaceUri("null://"), const FaceUri &remoteUri=FaceUri("null://"), ndn::nfd::FaceScope scope=ndn::nfd::FACE_SCOPE_NON_LOCAL, ndn::nfd::FacePersistency persistency=ndn::nfd::FACE_PERSISTENCY_PERMANENT)
The lower half of a Face.
void setState(TransportState newState)
Set transport state.
#define NFD_OVERRIDE_WITH_TESTS_ELSE_FINAL
#define NFD_FINAL_UNLESS_WITH_TESTS
@ CLOSED
the transport is closed, and can be safely deallocated