Set an option on the socket./*** this function was used to set a option on the socket.** @param option the new option Value to BES set on the socket.** @throws boost::system::system_error thrown on failure.** @sa settablesocketoption @n* Boo St::asio::socket_base::broadcast @n* boost::asio::socket_base::d o_not_route @n* Boost::asio::socket_base::keep_ Alive @n* Boost::asio::socket_base::linger @n* boost::asio::socket_base::receive_buffer_size @n* boost::asio::socket _base::receive_low_watermark @n* boost::asio::socket_base::reuse_address @n* boost::asio::socket_base::send_buffer _size @n* boost::asio::socket_base::send_low_watermark @n* boost::asio::ip::multicast::join_group @n* Boost::asio:: Ip::multicast::leave_group @n* boost::asio::ip::multicast::enable_loopback @n* boost::asio::ip::multicast::o Utbound_interface @n* boost::asio::ip::multicast::hops @n* boost::asio::ip::tcp::no_delay** @par Example* Setting the Ipproto_tcp/tcp_nodelay option:* @code * Boost::asio::ip::tcp::socket SockeT (io_service); *. * boost::asio::ip::tcp::no_delay option (TRUE); * socket.set_option (option); * @endcode */template <typename settablesocketoption>void set_option (const settablesocketoption& option) {Boost::system::error_ Code Ec;this->get_service (). Set_option (This->get_implementation (), option, EC) Boost::asio::d etail::throw_ Error (EC, "set_option");}
The option in the socket