Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7ea13f1e authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi
Browse files

floss: Update socket manager implementation

Refactor socket manager interface to expose higher level apis. The major
changes in this CL:

* Expose a BluetoothServerSocket and BluetoothSocket via a set of apis
  similar to what is exposed via BluetoothAdapter and BluetoothDevice on
  Android. These are all exposed via a single SocketManager trait.

* All socket apis require a callback id and sockets are always
  associated with that callback. When the callback disconnects, any
  sockets associated with it are removed.

* RPC apis will run in the RPC runtime but socket accept/polling will
  occur on a runtime specific to the socket manager.

Bug: 233123287
Tag: #floss
Test: ./build.py and ran binary on device (feature not tested)
Change-Id: Id0a827565b87d6af097bf34eb6be3ec60f297ea3
parent f5dcab4b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment