Added posix socket implementation