(self, sock, data)
return await fut
Send data to the socket.

        The socket must be connected to a remote socket. This method continues
        to send data from data until either all data has been sent or an
        error occurs. None is returned on success. On error, an exception is
        raised, and there is no way to determine how much data, if any, was
        successfully processed by the receiving end of the connection.
Send data to the socket.
Send data to the socket .
async def sock_sendall(self, sock, data):
        """Send data to the socket.

        The socket must be connected to a remote socket. This method continues
        to send data from data until either all data has been sent or an
        error occurs. None is returned on success. On error, an exception is
        raised, and there is no way to determine how much data, if any, was
        successfully processed by the receiving end of the connection.
        """
        _check_ssl_socket(sock)
        if self._debug and sock.gettimeout() != 0:
            raise ValueError("the socket must be non-blocking")
        try:
            n = sock.send(data)
        except (BlockingIOError, InterruptedError):
            n = 0

        if n == len(data):
            # all data sent
            return

        fut = self.create_future()
        fd = sock.fileno()
        self._ensure_fd_no_transport(fd)
        # use a trick with a list in closure to store a mutable state
        handle = self._add_writer(fd, self._sock_sendall, fut, sock,
                                  memoryview(data), [n])
        fut.add_done_callback(
            functools.partial(self._sock_write_done, fd, handle=handle))
        return await fut
async def sock_sendall ( self , sock , data ) : _check_ssl_socket ( sock ) if self . _debug and sock . gettimeout ( ) != 0 : raise ValueError ( "the socket must be non-blocking" ) try : n = sock . send ( data ) except ( BlockingIOError , InterruptedError ) : n = 0 if n == len ( data ) : # all data sent return fut = self . create_future ( ) fd = sock . fileno ( ) self . _ensure_fd_no_transport ( fd ) # use a trick with a list in closure to store a mutable state handle = self . _add_writer ( fd , self . _sock_sendall , fut , sock , memoryview ( data ) , [ n ] ) fut . add_done_callback ( functools . partial ( self . _sock_write_done , fd , handle = handle ) ) return await fut