posix sockets example - client, server