Erlang/OTP Forums

Author Message

<  Erlang patches mailing list  ~  asn1 improvement proposal

per at synap.se
Posted: Tue Aug 26, 2003 8:32 am Reply with quote
Guest
Hi,

The asn1 en/decoder proberly handles ellipsis notation as it is
today.

However, the decoder receives an extended PDU with
ellipsis data it will simply discard that information.
There is no way to tell the encoder to add extension information.

I propose that each record generated by the compiler should add
an additional '$ellipsis' field for the last '...' in a sequence/set.

The decoder should add any extension information to the '$ellipsis'
field. The encoder should allow the user to put extension information.

This improvement would allow creation of proxy functions where one
does not always have the latest available/vendor specific spec.

/Per
=========================================================
Per Bergqvist
Synapse Systems AB
Phone: +46 709 686 685
Email: per_at_synap.se


Post generated using Mail2Forum (http://m2f.sourceforge.net)
kenneth at erix.ericsson.
Posted: Tue Aug 26, 2003 9:14 am Reply with quote
Guest
Hi,

We have been thinking on a solution like that earlier but didn't find
time and motivation to implement it then.

It would be ok to receive the unknown "elipsis" parts as an undecoded
binary and to pass that to the encoder function for further
distribution, but I think is would be difficult for the user to create a
correct binary on his own and pass to the encoder.

I think your suggestion is worth taking up and we might implement it in
a coming version although we have to think about compatibility too.

/Regards Kenneth

Per Bergqvist wrote:
> Hi,
>
> The asn1 en/decoder proberly handles ellipsis notation as it is
> today.
>
> However, the decoder receives an extended PDU with
> ellipsis data it will simply discard that information.
> There is no way to tell the encoder to add extension information.
>
> I propose that each record generated by the compiler should add
> an additional '$ellipsis' field for the last '...' in a sequence/set.
>
> The decoder should add any extension information to the '$ellipsis'
> field. The encoder should allow the user to put extension information.
>
> This improvement would allow creation of proxy functions where one
> does not always have the latest available/vendor specific spec.
>
> /Per
> =========================================================
> Per Bergqvist
> Synapse Systems AB
> Phone: +46 709 686 685
> Email: per_at_synap.se


--
Kenneth Lundin Ericsson AB
kenneth_at_erix.ericsson.se

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum