Apr 14, 2011 at 1:27 PM
Edited Apr 14, 2011 at 1:27 PM
Actually, internal isn't a typo.
The library currently isn't intended to be extended outside.
internal is intentional to make sure people won't try to extend it outside as long as extensions aren't supported.
One of the basic problems in extending is the fact that in order to extend it correctly, you have to add a data member+access property to the datagram containing your new datagram, which means you have to change the library's code anyways, so you might as
well put your new protocol inside.
I'm not sure what is the best way to nicely solve this design issue.
You're welcome to open an issue for support of plugins/extensions of Datagrams and Layers.