[Ndn-interest] Questions about jNDN

ahmed abencherou a.abencherou at gmail.com
Fri Aug 7 10:48:38 PDT 2015


For the signature I use what is used in the following code :
https://github.com/named-data/jndn/blob/master/examples/src/net/named_data/jndn/tests/TestPublishAsyncNfd.java

2015-08-07 19:29 GMT+02:00 Thompson, Jeff <jefft0 at remap.ucla.edu>:

> The length depends on many things, for example the length of the key name
> in the KeyLocator, and the length of the signature (depending on the key
> size of the signing key). In your application, is every data packet signed
> with the same key? If so, can you encode one data packet where the content
> is zero length, and use this as a base line?
>
> - Jeff T
>
> From: ahmed abencherou <a.abencherou at gmail.com>
> Date: Friday, August 7, 2015 at 10:01:00
>
> To: Jeff Thompson <jefft0 at remap.ucla.edu>
> Cc: "ndn-interest at lists.cs.ucla.edu" <ndn-interest at lists.cs.ucla.edu>
> Subject: Re: [Ndn-interest] Questions about jNDN
>
> With my application, I don't want to generate a fixed length for the
> content field in the Data packet.
>
> So I want to know in advance the length of the other TLVs and set the
> content size to the remaining bytes.
>
> 2015-08-07 18:46 GMT+02:00 Thompson, Jeff <jefft0 at remap.ucla.edu>:
>
>> These are not exposed in the API, as the API is abstracted from the
>> encoding details which change frequently.
>>
>> May I ask why your application needs to know, for example, the MetaInfo
>> encoding length?  Maybe we can find a way to meet your application needs.
>>  (The API provides some mechanism for manipulating TLV encodings.)
>>
>> - Jeff T
>>
>> From: ahmed abencherou <a.abencherou at gmail.com>
>> Date: Friday, August 7, 2015 at 9:36:00
>> To: Jeff Thompson <jefft0 at remap.ucla.edu>
>> Cc: "ndn-interest at lists.cs.ucla.edu" <ndn-interest at lists.cs.ucla.edu>
>> Subject: Re: [Ndn-interest] Questions about jNDN
>>
>> Thank you Jeff
>>
>> But if I want to get the length of Name, MetaInfo or Signature TLVs in
>> Data packet not the size of the entire packet??
>>
>>
>>
>> 2015-08-07 18:23 GMT+02:00 Thompson, Jeff <jefft0 at remap.ucla.edu>:
>>
>>> Hi Ahmed, See inline.
>>>
>>> I have two questions related to jNDN:
>>>
>>>    1.
>>>
>>>    Does the current version support Nack interest i.e. can I send a
>>>    nack interest whether the requested content does not exist ?
>>>
>>> No not yet,
>>>
>>>    1.
>>>
>>>    I want to get the length of each TLV in Data packet, I means the
>>>    number of bytes that type, length and value occupy. Does it provide a
>>>    function to get this ?
>>>
>>> You can get the size of the entire data packet TLV with:
>>>    data.wireEncode().size()
>>>
>>> Thanks,
>>> - Jeff T
>>>
>>
>>
>>
>> --
>> ABENCHEROU Ahmed
>>
>>
>
>
> --
> ABENCHEROU Ahmed
>
>


-- 
ABENCHEROU Ahmed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20150807/120b28db/attachment.html>


More information about the Ndn-interest mailing list