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

Question about UDP broadcast server. #2

Open
mosolovsa opened this issue Feb 10, 2025 · 1 comment
Open

Question about UDP broadcast server. #2

mosolovsa opened this issue Feb 10, 2025 · 1 comment

Comments

@mosolovsa
Copy link

Hi!

I have a quick question about UDP broadcast server (listener). Isn't it necessary to set SO_BROADCAST for socket?

Consider: https://man7.org/linux/man-pages/man7/ip.7.html

Datagrams to broadcast addresses can be sent or received only when the SO_BROADCAST socket flag is set.

@pyang30
Copy link
Owner

pyang30 commented Feb 10, 2025

As I know, SO_BROADCAST is only for the sender who send broadcast message。Maybe 'send or received' means client send and client receive

Datagrams to broadcast addresses can be sent or received only when the SO_BROADCAST socket flag is set.

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

2 participants