© Jan Newmarch and Ronald Petty 2022
J. Newmarch, R. PettyNetwork Programming with Go Languagehttps://doi.org/10.1007/978-1-4842-8095-9_4

4. Data Serialization

Jan Newmarch1   and Ronald Petty2
(1)
Oakleigh, VIC, Australia
(2)
San Francisco, CA, USA
 

A client and a server need to exchange information via messages. TCP and UDP provide the transport mechanisms to do this. The two processes also need to have a protocol in place so that message exchange can take place meaningfully.

Messages are sent across the network as a sequence of bytes, which has no structure except as a linear stream of bytes. We address the various possibilities for messages and the protocols that define them in the next chapter. In this chapter, we concentrate on a component of messages ...

Get Network Programming with Go Language: Essential Skills for Programming, Using and Securing Networks with Open Source Google Golang now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.