[ndnSIM] how can i use NDNLP tag to set a double type tage

Junxiao Shi shijunxiao at email.arizona.edu
Thu Jan 12 11:11:53 PST 2017

Hi dyao & Spyros

Declaring a *tag* with double type should work.
However, declaring an *LpHeader* with double type needs additional work.

LpPacket only knows how to decode
in addition to WireDecodable+WireEncodable and Buffer iterator range.
You'll need to specialize DecodeHelper and EncodeHelper for double type,
which involves defining the wire format for double type.

Yours, Junxiao

On Sun, Jan 8, 2017 at 6:34 PM, Spyridon (Spyros) Mastorakis <
mastorakis at cs.ucla.edu> wrote:

> You tried to declare your tag like I did here, but instead of uint64_t to
> use a double type and it did not work?
> https://github.com/named-data-ndnSIM/ndn-cxx/commit/
> e53204419c51356dab70e0e5450ff5dcf587827a
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> Computer Science Department
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170112/9d7ba547/attachment-0001.html>

More information about the ndnSIM mailing list