-
Notifications
You must be signed in to change notification settings - Fork 197
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
UDP broadcast example #80
Comments
What error are you getting? Can you show me some code? Thanks. |
It shows an SOCKET_ERR_WRITE_FAILED - Permission Denied
UdpPort = 1234 |
This is fixed in the latest release, 0.12.58. I added a new API, udpBroadcast(enable: Bool), that you should call after creating the socket and before attempting to write to it. See the documentation in the README.md for more info. |
After updating and setting UdpBroadcast to true, a Permission denied error is returned when using the testReadWriteUDP() example function where hostname = "192.168.1.255" and port set to 1234. Are you able to confirm a "Hello from UDP" udp broadcast across the network using the testReadWriteUDP example function? |
Sorry, I had a typo in udpBroadcast. It's fixed in the 0.12.59 release. It was actually disabling the broadcast instead of enabling it. |
Awesome! Works now. Thanks! |
Is there any example usage available to demonstrate setting the socket options[if necessary] to allow for a UDP broadcast using the .write(from:,to:) command?
When I write to "192.168.1.255" I get a Udp write Error on a test network that allows broadcasts.
The text was updated successfully, but these errors were encountered: