Add GetDynamicPortRange api for Wifilan medium

PiperOrigin-RevId: 416669312
This commit is contained in:
edwinwu
2021-12-21 14:47:49 -08:00
committed by hai007
parent d29b05c367
commit 2fc61869f9
7 changed files with 51 additions and 2 deletions
@@ -155,6 +155,10 @@ class WifiLanMedium : public api::WifiLanMedium {
std::unique_ptr<api::WifiLanServerSocket> ListenForService(int port) override
ABSL_LOCKS_EXCLUDED(mutex_);
absl::optional<std::pair<std::int32_t, std::int32_t>> GetDynamicPortRange() override {
return absl::nullopt;
}
private:
struct AdvertisingInfo {
bool Empty() const { return services.empty(); }