code for unix socket programming