my (old) c snippets for unix socket programming