[Ndn-interest] Questions about jNDN
ahmed abencherou
a.abencherou at gmail.com
Fri Aug 7 10:01:08 PDT 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20150807/724ce2b0/attachment.html>
More information about the Ndn-interest
mailing list