| commit | b5cd99a474452b0940232510c164bb9bb7811ea6 | [log] [tgz] |
|---|---|---|
| author | Anusha Datar <anushadatar@google.com> | Thu Aug 06 17:10:31 2020 +0000 |
| committer | Rob Mohr <mohrr@google.com> | Thu Nov 16 10:58:22 2023 -0800 |
| tree | 77700425bafc7c3e6dab5d027196411b8175c233 | |
| parent | 078612a47147e1afa3756a40978c10e90ff1dd57 [diff] |
[bt][sdp] Refactor SdpServer packet handling To allow bt-hci-emulator to access the production SDP server instance, refactor server::OnRxBFrame so that it returns a fit::optional<ByteBufferPtr> instead of both generating and sending the response packet. Make refactored method (server::HandleRequest) public and independent of channels added through AddConnection. Create an additional method to handle finding the appropriate channel and sending the packet within the server to retain existing behavior. Test: fx test bt-host-unittests -- --gtest_filter="SDP_ServerTest*" Bug: 57375 Change-Id: I5f7f5785e10b9881d1aac1a49e9d961feb0a350b Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/412455 Commit-Queue: Anusha Datar <anushadatar@google.com> Testability-Review: Marie Janssen 💖 <jamuraa@google.com> Reviewed-by: Marie Janssen 💖 <jamuraa@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.