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
+4
View File
@@ -144,6 +144,10 @@ class WifiLanMedium {
// On error, returns nullptr.
virtual std::unique_ptr<WifiLanServerSocket> ListenForService(
int port = 0) = 0;
// Returns the port range as a pair of min and max port.
virtual absl::optional<std::pair<std::int32_t, std::int32_t>>
GetDynamicPortRange() = 0;
};
} // namespace api