return value of socket.write