Programming with Rudiments using the inetsocketclient class

Here's the code for a client that can communicate with the inetsocketserver program. This client sends a string to the server, reads what the server sends back and prints it out.

Coming soon...

int main(int argc, const char **argv) {
        // FIXME: example...

Inet sockets allow clients and servers to communicate across a network. Unix sockets can be used to allow clients and servers on the same machine to communicate. Though clients and servers on the same machine could communicate over an inet socket using localhost, unix sockets are much faster and use fewer system resources. See the unixsocketserver and unixsocketclient examples.