Move stream implementation to its own file.

This commit is contained in:
Vibhav Pant
2023-09-01 17:03:06 +05:30
parent b702bda1f6
commit 0b3accbe7e
3 changed files with 26 additions and 30 deletions
@@ -34,7 +34,12 @@ class BluetoothSocket final : public api::BluetoothSocket {
nearby::InputStream &GetInputStream() override { return input_stream_; }
nearby::OutputStream &GetOutputStream() override { return output_stream_; }
Exception Close() override;
Exception Close() override {
input_stream_.Close();
output_stream_.Close();
return Exception{Exception::kSuccess};
}
api::BluetoothDevice *GetRemoteDevice() override { return &device_; };
private: