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

Subnet broadcast is not possible #24

Open
fjwbarnard opened this issue Oct 16, 2023 · 0 comments
Open

Subnet broadcast is not possible #24

fjwbarnard opened this issue Oct 16, 2023 · 0 comments

Comments

@fjwbarnard
Copy link

Sending to Endpoint.broadcast() is equivalent to IPV4 255.255.255.255, but trying to send to a subnet broadcast address (e.g. 192.168.1.255 for a subnet of 255.255.255.0) using Endpoint.unicast() throws permission denied/file descriptor Socket Exceptions on Android.

Directly using RawDatagramSocket allows setting RawDatagramSocket.broadcastEnabled=true which is required for sending to a subnet broadcast address.

  1. Either expose the broadcastEnabled field for the Endpoint.unicast() constructor,
  2. or expose the address field for the Endpoint.broadcast() contructor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant