Initial implementation of BluetoothServerSocket

PiperOrigin-RevId: 390461649
This commit is contained in:
jfcarroll
2021-08-12 14:33:26 -07:00
committed by Copybara-Service
parent 512ba2af43
commit 07d33cfa9e
6 changed files with 300 additions and 63 deletions
@@ -16,6 +16,7 @@
#define PLATFORM_IMPL_WINDOWS_BLUETOOTH_CLASSIC_SOCKET_H_
#include "platform/api/bluetooth_classic.h"
#include "platform/impl/windows/generated/winrt/Windows.Foundation.h"
#include "platform/impl/windows/generated/winrt/Windows.Networking.Sockets.h"
#include "platform/impl/windows/generated/winrt/Windows.Storage.Streams.h"
@@ -65,6 +66,10 @@ class BluetoothSocket : public api::BluetoothSocket {
public:
BluetoothSocket();
BluetoothSocket(
winrt::Windows::Networking::Sockets::StreamSocket streamSocket)
: windows_socket_(streamSocket) {}
// TODO(b/184975123): replace with real implementation.
~BluetoothSocket() override;