INet4SocketAddress: unsigned/size_type bugfix for 64bit
[senf.git] / Socket / Protocols / INet / INet6Address.hh
index 1beecf9..94e240d 100644 (file)
@@ -23,8 +23,8 @@
 /** \file
     \brief INet6Address public header */
 
-#ifndef HH_INet6Address_
-#define HH_INet6Address_ 1
+#ifndef HH_SENF_Socket_Protocols_INet_INet6Address_
+#define HH_SENF_Socket_Protocols_INet_INet6Address_ 1
 
 // Custom includes
 #include <iostream>
@@ -203,6 +203,12 @@ namespace senf {
                                              \par 
                                              INet4 compatible INet6 addresses are not directly
                                              supported, they are deprecated in the RFC. */
+        std::string toString() const;
+                                        ///< get the string representation of this INet6Address
+        in6_addr  toin6_addr() const;
+                                        ///< get the linux in6_addr struct (convinience only) 
+        
+        
         ///@}
         ///////////////////////////////////////////////////////////////////////////
         ///\name Accessors
@@ -216,6 +222,12 @@ namespace senf {
 
         bool unicast() const;           ///< \c true, if address is unicast
         bool multicast() const;         ///< \c true, if address is multicast
+                                        /**< To support a linux specific extension, INet4 multicast
+                                             addressed mapped to INet6 are also interpreted as
+                                             multicast addresses. This is NOT part of the standard,
+                                             however the standard officially only allows unicast v4
+                                             addresses to be mapped to v6 so this does not collide
+                                             with any standard conforming use. */
 
         ScopeId scope() const;          ///< Get address's scope
                                         /**< The scope of an address is one of the \ref ScopeId