new coding for POSIX socket interface