LIBWIRE
Next-generation C++17 networking library.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
echo_client.cpp

This example shows how to implement simple echo server using libwire.1. Resolve specified DNS name to set of IPv4 addresses, pick first and connect to it.

  1. Read lines from stdin, write to socket, read string of matching length from socket and print it. Stop on EOF from stdin.