   </p>
<pre class="programlisting">boost::asio::ip::udp::socket socket(io_context);
...
boost::asio::socket_base::broadcast option;
socket.get_option(option);
bool is_set = option.value();
</pre>
<h6>
<a name="boost_asio.reference.basic_seq_packet_socket.broadcast.h1"></a>
          <span class="phrase"><a name="boost_asio.reference.basic_seq_packet_socket.broadcast.requirements"></a></span><a class="link" href="broadcast.html#boost_asio.reference.basic_seq_packet_socket.broadcast.requirements">Requirement