mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 07:36:10 -04:00
29 lines
689 B
C++
29 lines
689 B
C++
#ifndef PLATFORM_IMPL_LINUX_WIFI_DIRECT_SOCKET_H_
|
|
#define PLATFORM_IMPL_LINUX_WIFI_DIRECT_SOCKET_H_
|
|
|
|
#include "internal/platform/exception.h"
|
|
#include "internal/platform/implementation/linux/stream.h"
|
|
#include "internal/platform/implementation/wifi_direct.h"
|
|
|
|
namespace nearby {
|
|
namespace linux {
|
|
class WifiDirectSocket : public api::WifiDirectSocket {
|
|
public:
|
|
WifiDirectSocket(int socket);
|
|
~WifiDirectSocket() = default;
|
|
|
|
InputStream &GetInputStream() override;
|
|
OutputStream &GetOutputStream() override;
|
|
|
|
Exception Close() override;
|
|
|
|
private:
|
|
sdbus::UnixFd fd_;
|
|
OutputStream output_stream_;
|
|
InputStream input_stream_;
|
|
};
|
|
} // namespace linux
|
|
} // namespace nearby
|
|
|
|
#endif
|