Skip to main content

JXTA Discovery getRemoteAdvertisements() not sending DiscoveryRequest

1 reply [Last post]
tpatch
Offline
Joined: 2009-03-02

Hello,

I am playing with the discovery tutorial and I am finding that it sometimes takes a long time to connect and other times it is very fast. I have been watching the packets using a packet sniffer and I am finding that when getRemoteAdvertisements() is called, this does not translate into an immediate request on the network. I have seen it cycle through the call 3 or 4 times without a single request going out on the line. Is there a timeout setting for this?

Thanks,

Todd

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tpatch
Offline
Joined: 2009-03-02

I am looping through and calling getRemoteAdvertisements every 20 seconds. I am noticing that the query message is being sent on the network once every 5 minutes. Is this a default setting? Are there any ways to change this?