Building IPv6 Addresses
Example 12 shows how to build an IPv6 address object by specifying the port and then the host.
Example 12 – Building IPv6 addresses
RWInet6Addr addr1( 3010, "net.roguewave.com" ); // 1
RWInet6Addr addr2( 3010 ); // 2
RWInet6Addr addr3( "stream:net.roguewave.com:3010" ); // 3
RWInet6Addr addr4( "stream:[fe80::2b0:d0ff:fe92:873c]:3010" ); // 4
RWInet6Addr addr5( "stream:net.roguewave.com%4:3010" ); // 5
NOTE: IPv6 addresses are not supported on all platforms. To verify that IPv6 addresses are supported by Rogue Wave on your platform, check if the RWNET_HAS_INET6_SOCKETS macro is defined.