August 2025
Intermediate to advanced
272 pages
6h 14m
English
In the previous chapter, you got an overview of TCP as a protocol and of :gen_tcp, Erlang’s built-in module for working with TCP clients and servers. You now know how to write a basic TCP client and a basic TCP server. In this chapter, we’ll face the challenges that come with writing a TCP-based application. You’ll learn how to design a serialization protocol, and we’ll put together our first proper TCP server.
We’ll build a simple text-based chat system on top of TCP, working on both the server interface (in this chapter) and the client interface (in the next chapter, Chapter 4, Scaling TCP on the Server Side). Our chat system will support
Read now
Unlock full access