Use a message class. Read the message from the TCP stream directly.