[Boost-bugs] [Boost C++ Libraries] #3939: Determination on wither ip::address is a multicast address

Subject: [Boost-bugs] [Boost C++ Libraries] #3939: Determination on wither ip::address is a multicast address
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-02-17 07:23:22


#3939: Determination on wither ip::address is a multicast address
----------------------------------+-----------------------------------------
 Reporter: mccoryWork@… | Owner: chris_kohlhoff
     Type: Feature Requests | Status: new
Milestone: Boost 1.43.0 | Component: asio
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: Asio multicast |
----------------------------------+-----------------------------------------
 An ip::address can be created by either an IPv4 or IPv6 address. Once
 created the address is used for subsequent asio classes and function calls
 independently of the original format of the IP address. It is not
 currently possible to ask the class if the address is a multicast address.
 This means a user must determine the format of the address and then call
 "is_multicast" on the underlying class. In the
 "boost_asio/example/multicast/receiver.cpp" example, there isn't a way to
 validate if the receiver class was passed a multicast address, for the
 "join_group" function, without accessing the underlying IP type.

 Both the ip::address_v4 and ip::address_v6 classes can tell if the IP
 address is a multicast address. I suggest placing a "is_multicast"
 function in the ip::address class that calls the underlying class's
 "is_multicast" function.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3939>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC