It is not a bad idea at all to have a fixed length header, which specifies the length of the message, read the 20 byte header or whatever, and read until you get the message length specified by the header...
- Ant
- Some of my best work - Fish Dinner