mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
nearbyconnections : Adds accessor of ServiceType for NsdServiceInfo.
PiperOrigin-RevId: 404003948
This commit is contained in:
committed by
Copybara-Service
parent
b6ea14f741
commit
296274bc48
@@ -220,7 +220,7 @@ class WifiLanNsd {
|
||||
|
||||
// A pair of IP Address and Port. A remote device can use this information
|
||||
// to connect to us. This is non-null while IsAccepting is true.
|
||||
std::pair<std::string, int> GetServiceAddress();
|
||||
std::pair<std::string, int> GetCredentials();
|
||||
|
||||
// DnsServiceDeRegister is a async process, after operation finish, callback
|
||||
// will call this method to notify the waiting method StopAdvertising to
|
||||
@@ -263,9 +263,9 @@ class WifiLanNsd {
|
||||
// Private methods
|
||||
//
|
||||
|
||||
// Generates prefered listening port. If cannot bind to this port,
|
||||
// Generates preferred listening port. If cannot bind to this port,
|
||||
// NSD will assign a random port for the service.
|
||||
// TODO: Windows firewall may break the solution, need to futher solution to
|
||||
// TODO: Windows firewall may break the solution, need to further solution to
|
||||
// resolve the potential issue
|
||||
uint16 GenerateSocketPort(const std::string& service_id);
|
||||
|
||||
@@ -384,7 +384,7 @@ class WifiLanMedium : public api::WifiLanMedium {
|
||||
int port) override;
|
||||
|
||||
// returns advertising service address
|
||||
std::pair<std::string, int> GetServiceAddress(
|
||||
std::pair<std::string, int> GetCredentials(
|
||||
const std::string& service_id) override;
|
||||
|
||||
// for internal to clean closed connection.
|
||||
|
||||
Reference in New Issue
Block a user