chronoxor / CppServer

Ultra fast and low latency asynchronous socket server & client C++ library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
MIT License
1.44k stars 284 forks source link

How to Use UDP Broadcast in Linux? #91

Open qqnzhyxxx opened 1 year ago

qqnzhyxxx commented 1 year ago

May I ask if CppServer has a relevant interface to set UDP broadcast mode? I can directly send messages to the broadcast address (192.168.1.255) in Window, and the server receives them normally. However, when running on Linux, the client prompts [cause an error with code 13 and category 'asio. system': Permission denied]. It should be set separately without broadcast permission. How can I solve this problem?

Thanks Very Much.