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 toNone
.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, orNone
if the server is closed.
Please login to continue.