asyncio.Server

class asyncio.Server

Server listening on sockets.

Object created by the AbstractEventLoop.create_server() method and the start_server() function. Don’t instantiate the class directly.

close()

Stop serving: close listening sockets and set the sockets attribute to None.

The sockets that represent existing incoming client connections are left open.

The server is closed asynchronously, use the wait_closed() coroutine to wait until the server is closed.

coroutine wait_closed()

Wait until the close() method completes.

This method is a coroutine.

sockets

List of socket.socket objects the server is listening to, or None if the server is closed.

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

Please login to continue.