Discover and LIST network on LAN?
Can someone please tell me if it is possible to obtain a list of available networks in the LAN?
I mean: I know that by default, jxta tries to connect to networks found in the LAN, but which one will it choose if there are more than one netoworks found?
I know that networks can be separated by specifying a different Infrastructure ID to each of them and that they can be joined only if the joining peer has set the infrastructure ID of the network he wants.
Question1: What happens when 2-3 networks are started inside a LAN using the default infrastructure ID?
1.1 Will they mix up into one big network?
1.2 Is the default Infrastructure ID a fixed, hardcoded ID? (Edit: Yes, forgot that, it's PeerGroupID.defaultNetPeerGroupID)
Question2: How can one peer discover and list the available networks(with different infrastructure IDs) inside a LAN so it can select the network it wants to connect to?
1.1 Can this be done, or are they all "undiscoverable" and require the correct Infrastructure ID to connect? If so, this is highly unpracticle.
Thank you very much for your time and I await any form of enlightenment :)