this could a shot in the dark: we have a wire packet format which is in design and in flux. Is there a flexible way to specify and parse the incoming stream instead of harding coding it? Preferably language agnostic … but not necessarily so. If there is a good reason not to do that, please enlighten me as well.
Thanks
Oliver
There is a wonderful Python library called Construct. This is by far the easiest way to get started quickly.
If it is more important to be language agnostic, you can limit your wire protocol to ASN.1 BER, since it’s usually possible to find an encoder/decoder library for these in whatever language. For example, there’s CoDec in Java and PyASN1 in Python. Warning: though powerful, ASN is laden with design-by-committee standardese and it’s very hard to get started in it. This site will help.
There are also newer, lighter ASN.1-like approaches like Apache Thrift and Google Protocol Buffers.