Closed Bug 1124034 Opened 9 years ago Closed 6 years ago

Add a field on mozWifiP2pManager to provide a list of IP's of all connected peers

Categories

(Firefox OS Graveyard :: Wifi, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: drs, Unassigned)

Details

Currently, mozWifiP2pManager doesn't provide a list of the IP addresses of all connected peers. This makes it difficult to fetch data from each other on a network.

The only reasonable workaround that I know of for now is to IP scan, i.e. assume that `groupOwner.ipAddress` is the gateway, and then scan that network.

I'm proposing adding some way to get the IP addresses of these peers. Perhaps the `peerList` object provided by `mozWifiP2pManager.getPeerList()` could also provide an `ipAddress` field if the peer is on the same network. Or we could provide a `mozWifiP2pManager.getConnectedPeerList()` method.
No longer blocks: spark
(In reply to Doug Sherk (:drs) (PTO Feb 2-6) from comment #0)
> Currently, mozWifiP2pManager doesn't provide a list of the IP addresses of
> all connected peers. This makes it difficult to fetch data from each other
> on a network.
> 
> The only reasonable workaround that I know of for now is to IP scan, i.e.
> assume that `groupOwner.ipAddress` is the gateway, and then scan that
> network.
> 
> I'm proposing adding some way to get the IP addresses of these peers.
> Perhaps the `peerList` object provided by `mozWifiP2pManager.getPeerList()`
> could also provide an `ipAddress` field if the peer is on the same network.
> Or we could provide a `mozWifiP2pManager.getConnectedPeerList()` method.

Hi Doug,

I am going to refine the Wifi Direct function and API lately.
So far the API and the internal only deals with one-to-one
connection case. 

"All connected peers" may be in different subnet in different 
topology. For example, if you a device is being a group owner,
most likey all its peers would be in the same domain. However,
if a device is a client/station, its peer may in the domain
which is different from its group owner.

The most suitable design may be let the WifiP2pManager have
a participating group list and each group owns a peer list.

By the way, there we're a P2P workweek next week and we are 
supposed to come out the plan of enhancing Wifi Direct 
functionality.

I'll keep you posted and any kind of input is welcomed. Thanks!
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.