1 #ifndef jb_itch5_make_socket_udp_common_hpp 2 #define jb_itch5_make_socket_udp_common_hpp 6 #include <boost/asio/ip/multicast.hpp> 7 #include <boost/asio/ip/udp.hpp> 8 #include <boost/asio/ip/unicast.hpp> 22 template <
class socket_t = boost::asio::ip::udp::socket>
25 using socket_base = boost::asio::socket_base;
30 s.set_option(socket_base::do_not_route(cfg.
do_not_route()));
52 #endif // jb_itch5_make_socket_udp_common_hpp jb::config_attribute< udp_config_common, int > linger_seconds
jb::config_attribute< udp_config_common, int > send_low_watermark
jb::config_attribute< udp_config_common, bool > linger
jb::config_attribute< udp_config_common, int > receive_buffer_size
jb::config_attribute< udp_config_common, int > receive_low_watermark
jb::config_attribute< udp_config_common, bool > debug
void make_socket_udp_common(socket_t &s, udp_config_common const &cfg)
Configure a UDP socket.
jb::config_attribute< udp_config_common, bool > do_not_route
Common configuration parameters for both UDP senders and receivers.
jb::config_attribute< udp_config_common, int > send_buffer_size
The top-level namespace for the JayBeams library.