Files
bumble_fork/bumble
Cheng Sheng 1ceeccbbc0 open_tcp_server_transport: allow explicit sock as input.
When a user doesn't need an exact port, but cares more about getting
SOME unused port, they can do:
* Create a socket outside with port=None or port=0.
* Use socket.getsockname()[1] to get the allocated port and pass to the
TCP client somehow.
* Use the created socket to create a TCP server transport.

Use-case: unit-testing embedded software that implements a BLE host. The
controller will be a Bumble controller, connected to the host via a TCP
channel.
* The host will have a TCP-client HCI transport for testing.
* The pytest setup code will allocate the TCP server and pass the port
number to the host.

Also add some unittests with python mock.
2024-03-13 19:34:05 +01:00
..
2024-01-31 10:04:30 +08:00
2022-12-10 09:40:12 -08:00
wip
2023-05-12 16:26:57 -07:00
2024-02-03 13:29:25 +08:00
2023-12-23 02:14:32 +08:00
2023-03-23 04:36:02 +00:00
2023-03-31 16:09:24 -04:00
2024-01-28 19:09:39 -08:00
2024-01-28 19:09:39 -08:00
2024-02-06 12:06:00 +08:00
2024-02-27 16:40:37 -08:00
2024-02-01 12:08:43 +08:00
2024-02-06 12:06:00 +08:00
2023-05-05 16:16:55 -07:00
2024-01-11 01:16:42 +08:00
2023-11-15 15:48:19 -08:00
2024-02-03 13:13:35 +08:00
2023-03-20 12:14:28 -07:00
2024-01-28 19:02:30 -08:00