Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can mostly migrate to just using IPv6 APIs (as long as the sockopt IPV6_V6ONLY is disabled), but there are a couple major regressions.

There is no equivalent to 127.0.0.0/8, so you can't start separate servers on e.g. 127.0.0.2, 127.0.0.3, and 127.0.0.4

/etc/hosts cannot be enumerated; you can only do lookups.

You have to do that stupid wrap/unwrap with [] dance when converting between host names and addresses.

The other major porting concern is that you have to use `struct sockaddr_storage` where before you could get away with `struct sockaddr`.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: