Exemple #1
0
		inline void _helper_impl<mutable_helper_tag, ipv4_frame>::set_destination(boost::asio::ip::address_v4 _destination) const
		{
			this->frame().destination.s_addr = htonl(_destination.to_ulong());
		}
	size_t operator()(const boost::asio::ip::address_v4& p_ip) const
	{
		return p_ip.to_ulong();
	}
Exemple #3
0
		inline void _helper_impl<mutable_helper_tag, ipv4_frame>::set_source(boost::asio::ip::address_v4 _source) const
		{
			this->frame().source.s_addr = htonl(_source.to_ulong());
		}