» Asynchronous Socket
What’s more asynchronous than socket communication? When two programs need to talk to
each other, often from different computers on different networks in different
parts of the world, you can connect using a socket. Whether an HTTP server or
some custom protocol, you can implement both sides of that communication using
IO::Socket::Async.
Let’s consider a simple calculator service. It listens for connections over TCP.
When a connection is established, it takes lines of input over the connection
and parses each line as a simple mathematic calculation like 2 + 2 or 6 * 7.