asyncio.AbstractEventLoop.sock_sendall()

coroutine AbstractEventLoop.sock_sendall(sock, data)

Send data to the socket. Modeled after blocking socket.socket.sendall() method.

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.

With SelectorEventLoop event loop, the socket sock must be non-blocking.

This method is a coroutine.

doc_python
2016-10-07 17:26:34
Comments
Leave a Comment

Please login to continue.