Home Forums Support Peer Discovery – Android Reply To: Peer Discovery – Android

#3377
Anonymous
Inactive

Okay I was distracted with some bug fixing, but I’ve returned to this issue. I’ve created a new project that doesn’t throw errors anymore (removing the foreach loop after DiscoverPeers fixed the error), but it still doesn’t discover peers:

//Both server and client must be discoverable
PeerDiscovery.EnableDiscoverable(PeerDiscovery.DiscoveryMethod.UDPBroadcast);
//Write out the network adaptors that are discoverable
Console.WriteLine(“\nPeer Identifier: ” + NetworkComms.NetworkIdentifier);
Console.WriteLine(“\nDiscoverable on:”);
foreach (IPEndPoint localEndPoint in Connection.ExistingLocalListenEndPoints(ConnectionType.UDP))
Console.WriteLine(“{0}:{1}”, localEndPoint.Address, localEndPoint.Port);

Dictionary<ShortGuid, Dictionary<ConnectionType, List<EndPoint>>> discoveredPeerEndPoints = PeerDiscovery.DiscoverPeers(PeerDiscovery.DiscoveryMethod.UDPBroadcast);

Assuming there is some sort of bug with the lib is there an ETA for a hotfix?

  • This reply was modified 9 years, 10 months ago by .
  • This reply was modified 9 years, 10 months ago by .