MCPcopy Create free account
hub / github.com/boostorg/asio / udp_broadcaster

Method udp_broadcaster

example/cpp11/timeouts/server.cpp:346–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344{
345public:
346 udp_broadcaster(boost::asio::io_context& io_context,
347 const udp::endpoint& broadcast_endpoint)
348 : socket_(io_context)
349 {
350 socket_.connect(broadcast_endpoint);
351 socket_.set_option(udp::socket::broadcast(true));
352 }
353
354private:
355 void deliver(const std::string& msg)

Callers

nothing calls this directly

Calls 2

connectMethod · 0.45
set_optionMethod · 0.45

Tested by

no test coverage detected