-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When serializing, length field is always zero #11
Comments
Thank-you for the report @kastork Setting the length seems like something that should be done automatically by the library. Can I interest you in submitting a pull request? |
I doubt I'll have time to, I'm not really making a python application, was just kicking the tires and learning. |
Here's an example for how length is calculated in open-dis-java |
Currently working on it. Will file PR within day or two. |
In the
dis_sender.py
, the emitted ESPDU has its length field set to zero.The code in that example doesn't manipulate the length field.
This matters if you're using, say, open-dis java's PduFactory#getPdusFromBundle()`, which relies on this field's value.
The text was updated successfully, but these errors were encountered: