[Ndn-lib] Transport Access From Face
shijunxiao at email.arizona.edu
Wed Feb 18 13:31:55 PST 2015
I believe you are able to construct a Transport before creating the Face,
and pass the Transport to the Face.
In this way, you have access to Transport outside of OnInterest callback.
However, after 2181 <http://redmine.named-data.net/issues/2181>, NFD
forwarder will reject all unsolicited Data.
Applications should make use of InMemoryStorage, and put Data into
forwarder only after receiving an incoming Interest.
On Wed, Feb 18, 2015 at 2:26 PM, Brown, Andrew <andrew.brown at intel.com>
> As I understand it, a developer can push additional Data packets to a
> forwarder using the transport.send() method in the OnInterest callback (for
> caching, etc.). I would like to do this prior to any incoming Interests and
> would preferably like an API like face.push(data) to do it. Three questions:
> - Is there any way to do this currently outside of OnInterest and
> preserving a reference to Transport?
> - Is there any catch to using the content store in this way
> besides the fact that once it maxes out it will discard old Data packets?
> - Is this something to add to the client libraries or should it be
> in a class extending Face?
> Andrew Brown
> Flex AST, IoTG Intelligent Solutions
> Ndn-lib mailing list
> Ndn-lib at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ndn-lib