Here's the code for a client that can communicate with the unixsocketserver program. This client sends a string to the server, reads what the server sends back and prints it out.
int main(int argc, const char **argv) {Unix sockets allow clients and servers on the same machine to communicate. See the inetsocketserver and inetsocketclient examples for clients and servers that can communcate across a network.