asyncio.start_unix_server
Prev: asyncio.start_server | Up: asyncio | Next: asyncio.timeout
Rel: asyncio.AbstractEventLoop, asyncio.AbstractServer, asyncio.all_tasks, asyncio.as_completed
Ref: docs.python.org — asyncio.start_unix_server
Tags: #public #python3 #stdlib #asyncio
Import
import asyncio
from asyncio import start_unix_server
Signature & Overview
asyncio.start_unix_server(client_connected_cb, path=None, *, limit=65536, **kwds)
Similar to start_server but works with UNIX Domain Sockets.
Usage
import asyncio
# Unix domain socket counterpart to start_server()
assert hasattr(asyncio, "start_unix_server")
Gotchas
- Unix-only: Unlink stale socket files before binding if a previous server exited uncleanly.
REPL Inspect
from asyncio import start_unix_server
help(start_unix_server)
Linked from
Related notes
- tuts/python3/stdlib_module/asyncio/start_server Linked here; links to this page; shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio/timeout Linked here; links to this page; shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/asyncio/AbstractEventLoop Linked here; shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio/AbstractServer Linked here; shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio/all_tasks Linked here; shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio/as_completed Linked here; shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio/Barrier shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio/BaseEventLoop shared tags: #asyncio, #stdlib
- tuts/python3/stdlib_module/asyncio/BaseProtocol shared tags: #asyncio, #stdlib