Files
bumble_fork/bumble/transport
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-16 16:49:06 -08:00
2023-12-08 18:57:02 -08:00
2023-09-27 21:53:54 -07:00
2024-02-27 16:40:37 -08:00
2023-09-08 15:27:01 +08:00
2023-12-08 18:57:02 -08:00
2023-09-08 15:27:01 +08:00
2023-09-08 15:27:01 +08:00
2023-09-08 15:27:01 +08:00
2023-09-08 15:27:01 +08:00
2023-12-22 13:52:33 -08:00
2023-09-22 14:22:04 -07:00
2023-09-08 15:27:01 +08:00