In a crude way, you could "write" the object, assuming the target platform is the same endian, etc. A much better approach may be to look at using the persistance engine to serialize the class, perhaps with some work getting it to do so directly into a TCPStream...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can I pass my C++ objects as messages thru a TCPSocket?
In a crude way, you could "write" the object, assuming the target platform is the same endian, etc. A much better approach may be to look at using the persistance engine to serialize the class, perhaps with some work getting it to do so directly into a TCPStream...