asyncio.AbstractEventLoop.sock_recv()

coroutine AbstractEventLoop.sock_recv(sock, nbytes)

Receive data from the socket. Modeled after blocking socket.socket.recv() method.

The return value is a bytes object representing the data received. The maximum amount of data to be received at once is specified by nbytes.

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.