Skip to content

How to acquire MulticastLock when listening for broadcasted UDP messages? #253

@paulwellnerbou

Description

@paulwellnerbou

We use this project to listen for broadcasted UDP messages. Those UDP messages are broadcasted to the whole network (using 255.255.255.255 IP mask.

For some Android devices, this works fine, for others it does not. I created a blank native App to analyse this problem further, and it seems that it works, when the MulticastLock is acquired.

I scanned the source code, it seems that the MulticastLock is acquired when adding a membership.

But I did not find out how to use this, and how to add a membership as a UDP listening App. Which multicastAddress I am supposed to put there?

Do you have an example or some hints how to do this? Is this already implemented in 4.1.7?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions