mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Fixed bug of folder sharing
PiperOrigin-RevId: 524417795
This commit is contained in:
committed by
Copybara-Service
parent
6dac39292b
commit
49aa73bbdd
@@ -101,7 +101,7 @@ class BluetoothSocket : public api::BluetoothSocket {
|
||||
IAsyncAction CancelIOAsync();
|
||||
|
||||
private:
|
||||
static constexpr int kMaxTransmitPacketSize = 4096;
|
||||
static constexpr int kInitialTransmitPacketSize = 4096;
|
||||
|
||||
class BluetoothInputStream : public InputStream {
|
||||
public:
|
||||
@@ -113,7 +113,7 @@ class BluetoothSocket : public api::BluetoothSocket {
|
||||
|
||||
private:
|
||||
IInputStream winrt_input_stream_{nullptr};
|
||||
Buffer read_buffer_{kMaxTransmitPacketSize};
|
||||
Buffer read_buffer_{kInitialTransmitPacketSize};
|
||||
};
|
||||
|
||||
class BluetoothOutputStream : public OutputStream {
|
||||
@@ -128,11 +128,11 @@ class BluetoothSocket : public api::BluetoothSocket {
|
||||
|
||||
private:
|
||||
IOutputStream winrt_output_stream_{nullptr};
|
||||
Buffer write_buffer_{kMaxTransmitPacketSize};
|
||||
Buffer write_buffer_{kInitialTransmitPacketSize};
|
||||
};
|
||||
|
||||
bool InternalConnect(HostName connectionHostName,
|
||||
winrt::hstring connectionServiceName);
|
||||
winrt::hstring connectionServiceName);
|
||||
|
||||
winrt::fire_and_forget Listener_ConnectionStatusChanged(
|
||||
winrt::Windows::Devices::Bluetooth::BluetoothDevice device,
|
||||
|
||||
Reference in New Issue
Block a user