a light weight API grab the POSIX socket