mirror of
https://github.com/google/bumble.git
synced 2026-05-08 03:58:01 +00:00
Enhance transports
* Support IPv6 schema * Add transport integration tests * Add UNIX socket server
This commit is contained in:
@@ -185,12 +185,18 @@ async def _open_transport(scheme: str, spec: Optional[str]) -> Transport:
|
||||
|
||||
return await open_android_netsim_transport(spec)
|
||||
|
||||
if scheme == 'unix':
|
||||
if scheme in ('unix', 'unix-client'):
|
||||
from bumble.transport.unix import open_unix_client_transport
|
||||
|
||||
assert spec
|
||||
return await open_unix_client_transport(spec)
|
||||
|
||||
if scheme == 'unix-server':
|
||||
from bumble.transport.unix import open_unix_server_transport
|
||||
|
||||
assert spec
|
||||
return await open_unix_server_transport(spec)
|
||||
|
||||
raise TransportSpecError('unknown transport scheme')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user