i am trying to broadcast a UDP package using subnet.
i want to braodcast my package to 192.168.1.255 ?
can i do that ? and how using c++ ?
i am trying to broadcast a UDP package using subnet. i want to braodcast
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re using C++, I’d recommend using the Boost ASIO package for networking. The only gotcha is to be sure to set the broadcast ability on your UDP socket via:
The “Examples” section of the boost documentation should have plenty of references to get you up and running.