TCP 101
Unless you’re working in less mainstream corners of the Elixir world, it’s likely that TCP is what you’ll directly use the most. TCP is the most ubiquitous transport layer protocol for network applications. In this section, we’ll write a simple TCP client to connect to an existing TCP server to cover the basics of TCP. Let’s start with its client-server architecture.
Clients and Servers
It might be a generalization, but you’ll find that most interactions on networks can be modeled as a server and a client talking to each other. This distinction is important. A server is a computer program that uses a protocol to listen on some sort of network interface. The protocol is generally a transport layer protocol underneath (TCP or UDP), but ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access