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. A protocol defines what type of conversation can take place between two components of a distributed application by specifying messages and data types, encoding formats, and so on. This chapter looks at some of the issues involved in this process and gives a complete example ...
5. Application-Level Protocols
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.