net.named_data.jndn
public interface OnInterest
Modifier and Type | Method and Description |
---|---|
void |
onInterest(Name prefix,
Interest interest,
Transport transport,
long interestFilterId)
When an interest is received which matches the name prefix, onInterest is
called.
|
void onInterest(Name prefix, Interest interest, Transport transport, long interestFilterId)
prefix
- The prefix given to registerPrefix. NOTE: You must not change
the prefix object - if you need to change it then make a copy.interest
- The received interest.transport
- The Transport with the connection which received the
interest.
You must encode a signed Data packet and send it using transport.send().interestFilterId
- The interest filter ID which can be used with
Face.unsetInterestFilter.Copyright © 2016. All rights reserved.