mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Initial implementation of BluetoothServerSocket
PiperOrigin-RevId: 390461649
This commit is contained in:
committed by
Copybara-Service
parent
512ba2af43
commit
07d33cfa9e
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user