Networking is a common requirement in modern applications. Phobos offers a module,
std.socket, which provides a foundation for networked applications. We'll write a client and server pair to demonstrate how to use it. The client will send lines from standard input to the server. The server will accept any number of connections, say hello to new clients, and then echo back whatever it received.
We'll be building two separate applications: the client and the server.
Let's create a client by executing the following steps: