Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MulticastLock #1

Open
pocmo opened this issue Feb 22, 2013 · 0 comments
Open

Use MulticastLock #1

pocmo opened this issue Feb 22, 2013 · 0 comments
Labels

Comments

@pocmo
Copy link
Owner

pocmo commented Feb 22, 2013

Even though I successfully sent and received multicast packets between Nexus devices (Galaxy Nexus, Nexus 7, Nexus 10) the Wifi stack of a device might filter these packets. Therefore we need to acquire a MulticastLock from the WifiManager.

Allows an application to receive Wifi Multicast packets. Normally the Wifi
stack filters out packets not explicitly addressed to this device. Acquring
a MulticastLock will cause the stack to receive packets addressed to
multicast addresses. Processing these extra packets can cause a
noticable battery drain and should be disabled when not needed.

https://developer.android.com/reference/android/net/wifi/WifiManager.MulticastLock.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant