Understanding the TCP and UDP message format