Added a posix socket write.