d for compatibility with the socket
                      API, the value is ignored
        :return: The number of bytes written
        r