Your code should be written to use IPv6 interfaces; these will work with IPv4 too. The IPv6 APIs tend to be better organized than the IPv4 ones, too. The APIs allow you to work with IPv4 networks as well as IPv6 ones.
The main difference is when printing addresses: IPv4 dotted decimal (10.0.1.123) notation does have an analogue in IPv6, but it is more complex (and longer because the addresses are 128 bits instead of 32 bits). Host names are recommended for IPv6.
Possible IPv6 address notations:
- 0013:2124::0319 (abbreviated)
- 0013:2124:0000:0000:0000:0000:0000:0319 (longhand for previous address)
There are a number of variant address formats, including IPv4 transitional aids.