From: jmo Date: Tue, 4 Aug 2009 08:51:47 +0000 (+0000) Subject: fix: no IPv6 address for www.6bone.net anymore changed to www.go6.net X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=ea83bb55d37849eabd91d08eb14d5afbe8bdbc22;p=senf.git fix: no IPv6 address for 6bone.net anymore changed to www.go6.net git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1283 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Socket/Protocols/INet/INet4Address.test.cc b/Socket/Protocols/INet/INet4Address.test.cc index 3c75262..c707745 100644 --- a/Socket/Protocols/INet/INet4Address.test.cc +++ b/Socket/Protocols/INet/INet4Address.test.cc @@ -68,7 +68,7 @@ BOOST_AUTO_UNIT_TEST(inet4Address) BOOST_CHECK( addr ); BOOST_CHECK( ! INet4Address() ); BOOST_CHECK_THROW( INet4Address::from_string(""), AddressSyntaxException ); - BOOST_CHECK( INet4Address::from_string("www.6bone.net") != INet4Address::None ); + BOOST_CHECK( INet4Address::from_string("www.go6.net") != INet4Address::None ); BOOST_CHECK_THROW( INet4Address::from_string("invalid.host.fhg.de"), UnknownHostnameException); { diff --git a/Socket/Protocols/INet/INet6Address.test.cc b/Socket/Protocols/INet/INet6Address.test.cc index 241eeda..391c8ec 100644 --- a/Socket/Protocols/INet/INet6Address.test.cc +++ b/Socket/Protocols/INet/INet6Address.test.cc @@ -61,7 +61,7 @@ BOOST_AUTO_UNIT_TEST(inet6Address) BOOST_CHECK_EQUAL( addr1[13], 14 ); BOOST_CHECK_EQUAL( addr1[14], 15 ); BOOST_CHECK_EQUAL( addr1[15], 0 ); - BOOST_CHECK( INet6Address::from_string("www.6bone.net") != INet6Address::None ); + BOOST_CHECK( INet6Address::from_string("www.go6.net") != INet6Address::None ); INet6Address addr2; BOOST_CHECK_EQUAL( senf::str(addr2), "::" ); addr2 = INet6Address::from_string("::1"); diff --git a/Socket/Protocols/INet/INetAddressing.hh b/Socket/Protocols/INet/INetAddressing.hh index 362e55c..94e3c02 100644 --- a/Socket/Protocols/INet/INetAddressing.hh +++ b/Socket/Protocols/INet/INetAddressing.hh @@ -48,7 +48,7 @@ namespace senf { INet4Address wraps the standard sockaddr_in datatype. It provides simple accessor methods to access the host and port. It does \e not integrate \c gethostbyname or DNS lookup. - + \implementation This implementation is based on sockaddr_in, which is needed since it needs to provide a non-const struct sockaddr * for legacy compatibility. @@ -76,7 +76,7 @@ namespace senf { \throws UnknownHostnameException if the address cannot be resolved. */ - INet4SocketAddress(INet4Address const & addr, unsigned port); + INet4SocketAddress(INet4Address const & addr, unsigned port); ///< Set address and port explicitly /**< \param[in] addr IP address \param[in] port port number */ @@ -123,10 +123,10 @@ namespace senf { Where \e address is an arbitrary numeric IPv6 address, \e zone-id is an optional network interface name and \e port is the port number. So some example addresses are - + \par "" [2001:db8:1::1]:80 \n - www.6bone.net:80 \n + www.go6.net:80 \n [fe80::1\%eth0]:443 \implementation The sockaddr_in6 structure has an sin6_flowinfo member. However RFC3493 does @@ -153,7 +153,7 @@ namespace senf { ///@{ INet6SocketAddress(); ///< Create empty instance - explicit INet6SocketAddress(std::string const & addr, + explicit INet6SocketAddress(std::string const & addr, INet6Address::Resolve_t resolve = INet6Address::ResolveINet6); ///< Initialize/convert from string representation /**< \throws AddressSyntaxException if the address syntax is @@ -271,7 +271,7 @@ namespace senf { //#include "INetAddressing.mpp" #endif - + // Local Variables: // mode: c++ // fill-column: 100 diff --git a/Socket/Protocols/INet/INetAddressing.test.cc b/Socket/Protocols/INet/INetAddressing.test.cc index 3fcb053..ba0b597 100644 --- a/Socket/Protocols/INet/INetAddressing.test.cc +++ b/Socket/Protocols/INet/INetAddressing.test.cc @@ -115,7 +115,7 @@ BOOST_AUTO_UNIT_TEST(inet6SocketAddress) BOOST_CHECK_EQUAL( addr.port(), 12345u ); BOOST_CHECK_EQUAL( addr.iface(), "" ); BOOST_CHECK_EQUAL( addr, INet6SocketAddress("[12::21]:12345") ); - SENF_CHECK_NO_THROW( INet6SocketAddress("www.6bone.net:80") ); + SENF_CHECK_NO_THROW( INet6SocketAddress("www.go6.net:80") ); addr = INet6SocketAddress("1.2.3.4:12345", INet6Address::ResolveINet4); BOOST_CHECK_EQUAL( addr.address(), INet6Address::from_string("::ffff:1.2.3.4") ); BOOST_CHECK_EQUAL( addr.port(), 12345u ); @@ -147,7 +147,7 @@ BOOST_AUTO_UNIT_TEST(inet6SocketAddress) } { - BOOST_CHECK_THROW( INet6SocketAddress(INet6Address::Loopback, 1, "invalid_iface"), + BOOST_CHECK_THROW( INet6SocketAddress(INet6Address::Loopback, 1, "invalid_iface"), AddressSyntaxException ); INet6SocketAddress addr (INet6Address::Loopback, 1, "lo"); BOOST_CHECK_EQUAL( addr, INet6SocketAddress("[::1%lo]:1") );