Can the client of a WifiP2pGroup know about the other clients?

251 views
Skip to first unread message

Brendan

unread,
Jul 11, 2016, 2:25:46 PM7/11/16
to Wi-Fi Direct
If I connect to a WifiP2pGroup as a client, can I get the client list? I asked this on StackOverflow, but haven't received any answers. https://stackoverflow.com/posts/38187617/edit 

I'm using Android Wi-Fi Direct service discovery. When connection info is available, I request group info if a group is formed. For some reason, when I connect as a client, I can get the group owner from the group, but the client list is empty. When I connect as a group owner, I'm able to get the group owner and the client list. When I get to the chat fragment, I'm trying to display who the group owner and clients are. Another issue is that the group owner device name seems to be blank, but the rest of the info is correct, like the address (I removed the address lines). I've tried requesting group info in a few different places, and I'm never able to get the client list when connected as a client. I switch to the chat fragment when I receive the `SERVICE_CONNECTED` intent. 

Connecting as client:

    I/wfd_: Wi-Fi P2P Connection Changed
    I
/wfd_: Connected to P2P network. Requesting connection info
    I
/wfd_: Connection info available
    I
/wfd_: WifiP2pInfo:
    I
/wfd_: Group formed: true
           
Is group owner: false
           
Group owner address: /192.168.49.1
    I/
wfd_: Stopping service discovery
    I
/wfd_: Service discovery stopped
    I
/wfd_: Connected as client
    I
/wfd_: Requesting group info
    I
/wfd_CommReceiver: This device changed
    I
/wfd_ClientSocketHandler: Client socket thread running
    I
/wfd_ClientSocketHandler: Opening client socket
    I
/System.out: [CDS][DNS] getAllByNameImpl netId = 0
    I
/System.out: [socket][0] connection /192.168.49.1:4545;LocalPort=34789(5000)
    I
/System.out: [CDS]connect[/192.168.49.1:4545] tm:5
    I/
wfd_: Service discovery requests cleared
    I
/wfd_: Group info available
    I
/wfd_: WifiP2pGroup:
    I
/wfd_: Network name: DIRECT-Ig-BLU Clark 2
           
Is group owner: false
           
Group owner:
           
Device name: BLU Clark 2
           
Status: Unavailable
                                                                   
           
Client list is empty.
   
/System.out: [socket][/192.168.49.117:34789] connected
    I
/wfd_ClientSocketHandler: Client socket - true
    I
/wfd_ClientSocketHandler: Launching the I/O handler
    I
/wfd_CommReceiver: Service connected
    I
/wfd_CommReceiver: Switching to Chat fragment
    I
/wfd_: handleMessage() called


Connecting as group owner:

    I/wfd_: Wi-Fi P2P Connection Changed
    I
/wfd_: Connected to P2P network. Requesting connection info
    I
/wfd_: Connection info available
    I
/wfd_: WifiP2pInfo:
    I
/wfd_: Group formed: true
           
Is group owner: true
           
Group owner address: /192.168.49.1
    I/
wfd_: Stopping service discovery
    I
/wfd_: Service discovery stopped
    I
/wfd_: Connected as group owner
    I
/wfd_OwnerSocketHandler: Group owner server socket started
    I
/wfd_: Requesting group info
    I
/wfd_OwnerSocketHandler: Group owner server socket thread running
    I
/wfd_: Service discovery requests cleared
    I
/wfd_CommReceiver: This device changed
    I
/wfd_: Group info available
    I
/wfd_: WifiP2pGroup:
    I
/wfd_: Network name: DIRECT-XB-Brendan BLU
           
Is group owner: true
           
Group owner:
           
Device name:
           
Status: Unavailable
                                                                   
           
Client:
           
Device name: BLU Clark 2
           
Status: Connected
    I
/wfd_CommReceiver: Service connected
    I
/wfd_CommReceiver: Switching to Chat fragment
    I
/wfd_OwnerSocketHandler: Launching the I/O handler
    I
/wfd_: handleMessage() called



Code:

    @Override
       
public void onConnectionInfoAvailable(WifiP2pInfo wifiP2pInfo) {
           
Log.i(TAG, "Connection info available");
   
           
Log.i(TAG, "WifiP2pInfo: ");
           
Log.i(TAG, p2pInfoToString(wifiP2pInfo));
           
this.groupFormed = wifiP2pInfo.groupFormed;
           
this.isGroupOwner = wifiP2pInfo.isGroupOwner;
   
           
if (wifiP2pInfo.groupFormed) {
                stopServiceDiscovery
();
   
               
Thread handler;
               
if (wifiP2pInfo.isGroupOwner) {
                   
Log.i(TAG, "Connected as group owner");
                   
try {
                        handler
= new OwnerSocketHandler(this.getHandler());
                        handler
.start();
                   
} catch (IOException e) {
                       
Log.e(TAG, "Failed to create a server thread - " + e.getMessage());
                       
return;
                   
}
               
} else {
                   
Log.i(TAG, "Connected as client");
                    handler
= new ClientSocketHandler(this.getHandler(), wifiP2pInfo.groupOwnerAddress);
                    handler
.start();
               
}
   
               
Log.i(TAG, "Requesting group info");
               
// Requests peer-to-peer group information
                wifiP2pManager
.requestGroupInfo(channel, new WifiP2pManager.GroupInfoListener() {
                   
@Override
                   
public void onGroupInfoAvailable(WifiP2pGroup wifiP2pGroup) {
                       
Log.i(TAG, "Group info available");
                       
if (wifiP2pGroup != null) {
                           
Log.i(TAG, "WifiP2pGroup:");
                           
Log.i(TAG, p2pGroupToString(wifiP2pGroup));
                           
WifiDirectHandler.this.wifiP2pGroup = wifiP2pGroup;
                       
} else {
                           
Log.w(TAG, "Group is null");
                       
}
                        localBroadcastManager
.sendBroadcast(new Intent(Action.SERVICE_CONNECTED));
                   
}
               
});
   
           
} else {
               
Log.w(TAG, "Group not formed");
           
}
            localBroadcastManager
.sendBroadcast(new Intent(Action.DEVICE_CHANGED));
       
}

Thank you
- Brendan

Vinit Deshpande

unread,
Jul 11, 2016, 3:21:35 PM7/11/16
to Brendan, Wi-Fi Direct
I don't think there is any way for the GC to get a complete list of all GCs. Only GO knows that.

This kind of functionality is expected to be handled at a higher layer. You should consider running a small server on GO to keep track of all the clients connected, and provide it to any client that might be running on GC.

--
You received this message because you are subscribed to the Google Groups "Wi-Fi Direct" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wi-fi-direct...@googlegroups.com.
Visit this group at https://groups.google.com/group/wi-fi-direct.
To view this discussion on the web visit https://groups.google.com/d/msgid/wi-fi-direct/8d29c466-bb1b-43e6-aad5-91bf53f80911%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brendan

unread,
Jul 11, 2016, 8:46:55 PM7/11/16
to Wi-Fi Direct, bjk...@g.rit.edu
Thank you Vinit, I'll try that. 
To unsubscribe from this group and stop receiving emails from it, send an email to wi-fi-direct+unsubscribe@googlegroups.com.

Donkiss Zidane

unread,
Jul 10, 2024, 2:59:55 AM7/10/24
to Wi-Fi Direct

There is a growing number of people who wish to buy shrooms online. It is often hard to tell which form of products to buy since you cannot see it physically. This is sometimes peculiar to newbies who haven’t tried shrooms before. They just don’t know how to go about it. Shroom Edibles are not so popularly discussed as often as you think. A lot of experienced shroom users have not even had a taste of these Psilonauts Psilocybin Chocolate Bar goodness that offer a premium psychedelic trip.


Shroom edibles refer to food products that have been infused with a measured dosage of psilocybin, the active ingredient found in magic mushrooms. Magic mushrooms, also known as shrooms, have a long history and are renowned for their psychedelic effects. In this article, we will delve into the nature of magic mushrooms, the workings of psilocybin, and the appeal of shroom edibles.
Understanding Magic Mushrooms
Magic mushrooms are a distinct type of fungi that contain the psychoactive compound psilocybin. They have been used for social, religious, and medicinal purposes throughout history. Magic mushrooms are known to produce psychedelic effects similar to other hallucinogens such as LSD.


Buy Albino Penis Envy Mushrooms, or “APE,” is a genetically isolated, non-pigmented strain of the famous Polkadot chocolate. But the lack of pigment gives the albino penile envy mushroom a bright white appearance.


Your best online shop to get platinum quality microdosing psychedelics products online, pain,anxiety pills, and research chemicals.
Be 100% assured about the quality and genuineness of the product, and you will also be able to buy quality psychedelics products at a fair price.


Buy Mushrooms Infused Chocolate Bars

https://t.me/EgUNSNP43FY3MDJk/5356?single


Buy Strawberry Rox

https://t.me/EgUNSNP43FY3MDJk/5325


Buy Muha Meds Disposable

https://t.me/EgUNSNP43FY3MDJk/5302?single


Buy C&G Carts

https://t.me/EgUNSNP43FY3MDJk/5293


Buy Persy Snowcaps 

https://t.me/EgUNSNP43FY3MDJk/5293


Buy Nug Shatter 

https://t.me/EgUNSNP43FY3MDJk/5234


Buy Gold Coast Clear Carts 

https://t.me/EgUNSNP43FY3MDJk/5232


Buy Gelato Pop

https://t.me/EgUNSNP43FY3MDJk/5212


Buy Gelato Online 

https://t.me/EgUNSNP43FY3MDJk/5205


Buy Banana Runtz Online 

https://t.me/EgUNSNP43FY3MDJk/5203


Buy Candy Runtz Online 

https://t.me/EgUNSNP43FY3MDJk/5200


Buy Doja Edibles Online 

https://t.me/EgUNSNP43FY3MDJk/5148


Buy Fryd Cart Online 

https://t.me/EgUNSNP43FY3MDJk/5145


Buy Packman Live Resin x Liquid Diamonds Catridges Online 

https://t.me/EgUNSNP43FY3MDJk/5143


Buy 2G Cake Dispoble Online 

https://t.me/EgUNSNP43FY3MDJk/5143


Buy California Gold Coast Cart Online 

https://t.me/EgUNSNP43FY3MDJk/5140


Buy Bloom Surf Disposable Online 

https://t.me/EgUNSNP43FY3MDJk/5060


Buy Pre-rolls Online 

https://t.me/EgUNSNP43FY3MDJk/5004?single


Buy 2g Persy Cart Online 

https://t.me/EgUNSNP43FY3MDJk/4976?single


Buy Edibles Online 

https://t.me/EgUNSNP43FY3MDJk/4940


Buy Cold Fire Juice Carts Online 

https://t.me/EgUNSNP43FY3MDJk/4928


Buy Whole Melt Tropical Online 

https://t.me/EgUNSNP43FY3MDJk/4797?single


Buy Candy Cake Online 

https://t.me/EgUNSNP43FY3MDJk/4688


Buy Golden Teacher Mushrooms Online 

https://t.me/EgUNSNP43FY3MDJk/4677


Buy Piff Bars 3g Online 

https://t.me/EgUNSNP43FY3MDJk/4642?single


Buy Kaws Moonrocks Online 

https://t.me/EgUNSNP43FY3MDJk/4639?single


Buy Frozen Grapes Ice Caps

https://t.me/EgUNSNP43FY3MDJk/4518?single


Buy Rainbow Runtz Online 

https://t.me/EgUNSNP43FY3MDJk/4486


Buy White Runtz Online 

https://t.me/EgUNSNP43FY3MDJk/4348


Buy Torch 2g Live Resin Disposables Online 

https://t.me/EgUNSNP43FY3MDJk/4280?single


Buy Cookie Carts Online 

https://t.me/EgUNSNP43FY3MDJk/4278?single


Buy Guava Gelato Online 

https://t.me/EgUNSNP43FY3MDJk/4136?single


Buy Sour Diesel Snowball Online 

https://t.me/EgUNSNP43FY3MDJk/4058


Buy psilocybin Mushrooms Online 

https://t.me/EgUNSNP43FY3MDJk/4046


Buy Packman 2g Disposable Online 

https://t.me/EgUNSNP43FY3MDJk/4031?single


Buy Jeetter Juice 2g Disposable Online 

https://t.me/EgUNSNP43FY3MDJk/4016?single


Buy Pluto 2g Carts Online 

https://t.me/EgUNSNP43FY3MDJk/4010?single


Buy Candy Piffs Online 

https://t.me/EgUNSNP43FY3MDJk/4007?single


Buy Moonrocks Online 

https://t.me/EgUNSNP43FY3MDJk/4003?single


Buy Birthday cake Online 

https://t.me/EgUNSNP43FY3MDJk/3915?single


Buy Sourz Liquid Diamonds Edibles Online 

https://t.me/EgUNSNP43FY3MDJk/3837?single


Buy Clarity Shatter Online 

https://t.me/EgUNSNP43FY3MDJk/3835?single


Buy Sauce Bars Online 

https://t.me/EgUNSNP43FY3MDJk/3827?single


Buy Sugar Wax Online 

https://t.me/EgUNSNP43FY3MDJk/3819?single


Where to buy Dmt Carts In USA 

https://t.me/EgUNSNP43FY3MDJk/5349


Order Happy Mushrooms Edibles In USA

https://t.me/EgUNSNP43FY3MDJk/5354?single


Buy Splitz Live Resin Online 

https://t.me/EgUNSNP43FY3MDJk/3738?single


Where to buy Mushrooms Infused Chocolate 

https://t.me/EgUNSNP43FY3MDJk/5375


Buy Polkadot mushrooms chocolate bar

https://t.me/EgUNSNP43FY3MDJk/5374


Buy 1g Disposable Vape Online 

https://t.me/EgUNSNP43FY3MDJk/5371?single


Order Thc Infused Gummies In USA 

https://t.me/EgUNSNP43FY3MDJk/5367?single


Buy Thc Chocolate Edibles Online 

https://t.me/EgUNSNP43FY3MDJk/5365?single


Purchase Mushroom Gummies Online 

https://t.me/EgUNSNP43FY3MDJk/5363?single


Where To Order Mushroom Infused Mints

https://t.me/EgUNSNP43FY3MDJk/5361?single


https://t.me/EgUNSNP43FY3MDJk/5434?single

https://t.me/EgUNSNP43FY3MDJk/5430

https://t.me/EgUNSNP43FY3MDJk/5430

https://t.me/EgUNSNP43FY3MDJk/5428?single

https://t.me/EgUNSNP43FY3MDJk/5423?single

https://t.me/EgUNSNP43FY3MDJk/5423?single

https://t.me/EgUNSNP43FY3MDJk/5423?single

https://t.me/EgUNSNP43FY3MDJk/5416

https://t.me/EgUNSNP43FY3MDJk/5415?single

https://t.me/EgUNSNP43FY3MDJk/5412

https://t.me/EgUNSNP43FY3MDJk/5411

https://t.me/EgUNSNP43FY3MDJk/5410

https://t.me/EgUNSNP43FY3MDJk/5639?single

https://t.me/EgUNSNP43FY3MDJk/5637?single

https://t.me/EgUNSNP43FY3MDJk/5635?single

https://t.me/EgUNSNP43FY3MDJk/5632?single

https://t.me/EgUNSNP43FY3MDJk/5630?single

https://t.me/EgUNSNP43FY3MDJk/5628?single

https://t.me/EgUNSNP43FY3MDJk/5626?single

https://t.me/EgUNSNP43FY3MDJk/5624?single

https://t.me/EgUNSNP43FY3MDJk/5622?single

https://t.me/EgUNSNP43FY3MDJk/5620?single

https://t.me/EgUNSNP43FY3MDJk/5618?single

https://t.me/EgUNSNP43FY3MDJk/5616?single

https://t.me/EgUNSNP43FY3MDJk/5613?single

https://t.me/EgUNSNP43FY3MDJk/5611?single

https://t.me/EgUNSNP43FY3MDJk/5609?single

https://t.me/EgUNSNP43FY3MDJk/5607?single

https://t.me/EgUNSNP43FY3MDJk/5607?single

https://t.me/EgUNSNP43FY3MDJk/5852?single



Telegram Usernames. @Caliibudss
Message has been deleted
Message has been deleted

Amanda Lucci

unread,
May 5, 2026, 12:49:45 PM (4 days ago) May 5
to Wi-Fi Direct

Buy Coke , DMT , Shrooms , MDMA , Ket , Dexies or LSD .thc vape juice https://t.me/psychedelicstribestore Europe Mushroom Chocolate Bars Buy psychedelic online California, Texas, Australia, Ireland ,Cubensis Norway, Europe https://t.me/psychedelicstribestore
thc vape juice Europe Mushroom Chocolate Bars Buy psychedelic online https://t.me/psychedelicstribestore
California, Texas, Australia, Ireland ,Cubensis Norway,

Buy dmt carts USA, DMT-CARTS AND CARTRIDGES, dmt-carts dmt-vapes, https://t.me/psychedelicstribestore buy dmt-powder nn-dmt, looking for d-m-t V-a-p-e pen usa, buy NN-Dimethyltryptamine online, looking for American dmt carts house,

JOIN US NOW-WE ARE HERE

https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )

A critical bit of clients report experiencing little mythical people when they are daydreaming on DMT pen they buy online.
JOIN US NOW-WE ARE HERE
https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg)

DMT CARTSz FOR SALE | ORDER DMT VAPE AND DMT CARTS FROM ENGLAND

JOIN US NOW-WE ARE HERE
https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )

Tele_gram ( @Jscreg )

I've been working on Taurus and with Gatling all summer, and I have had some great success with the two, but in recent weeks (primarily the last 2, maybe 3) I have been having continuous problems.  Just in case, because I don't know where the best place to go with this issue, I am posting this to the Gatling group questions too.
Anyways, here is my issue. https://t.me/psychedelicstribestore  I am designing a test to measure capabilities of my company's API.  After many weeks of working to get this test together, with all of the functions included, I have finally gotten the running version (not accurately running, but it still compiles none the less) to run through.
JOIN US NOW-WE ARE HERE
https://t.me/psychedelicstribestore

Amanda Lucci

unread,
May 5, 2026, 12:50:21 PM (4 days ago) May 5
to Wi-Fi Direct

Buy Coke , DMT , Shrooms , MDMA , Ket , Dexies or LSD .thc vape juice https://t.me/psychedelicstribestore Europe Mushroom Chocolate Bars Buy psychedelic online California, Texas, Australia, Ireland ,Cubensis Norway, Europe https://t.me/psychedelicstribestore
thc vape juice Europe Mushroom Chocolate Bars Buy psychedelic online https://t.me/psychedelicstribestore
California, Texas, Australia, Ireland ,Cubensis Norway,

Buy dmt carts USA, DMT-CARTS AND CARTRIDGES, dmt-carts dmt-vapes, https://t.me/psychedelicstribestore buy dmt-powder nn-dmt, looking for d-m-t V-a-p-e pen usa, buy NN-Dimethyltryptamine online, looking for American dmt carts house,

JOIN US NOW-WE ARE HERE

https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )

A critical bit of clients report experiencing little mythical people when they are daydreaming on DMT pen they buy online.
JOIN US NOW-WE ARE HERE
https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg)

DMT CARTSz FOR SALE | ORDER DMT VAPE AND DMT CARTS FROM ENGLAND

JOIN US NOW-WE ARE HERE
https://t.me/psychedelicstribestore
Tele_gram ( @Jscreg )

Tele_gram ( @Jscreg )

I've been working on Taurus and with Gatling all summer, and I have had some great success with the two, but in recent weeks (primarily the last 2, maybe 3) I have been having continuous problems.  Just in case, because I don't know where the best place to go with this issue, I am posting this to the Gatling group questions too.
Anyways, here is my issue. https://t.me/psychedelicstribestore  I am designing a test to measure capabilities of my company's API.  After many weeks of working to get this test together, with all of the functions included, I have finally gotten the running version (not accurately running, but it still compiles none the less) to run through.
JOIN US NOW-WE ARE HERE
https://t.me/psychedelicstribestore


On Monday, July 11, 2016 at 7:25:46 PM UTC+1 Brendan wrote:
Reply all
Reply to author
Forward
0 new messages