I have some structures which I want to send to another computer on my network.
The structure includes strings and ordinal types.
Right now I'm inheriting a TComponent stores my data as published properties and then stream the component to a string and at the other side I convert the string to a component object. This works fine, but seems a bit dumb.
So any ideas how do it in a cleaner way.
I thought of using records but this is AFAIK not possible because of the strings. I want a generic procedure to stream my structure to data and then back again.