3 ms·
> you also had for years the issue of lots of applications requiring substantial rewrite to support another protocol due to use of BSD Sockets Past tense? I s
by comex 3y ago
> you also had for years the issue of lots of applications requiring substantial rewrite to support another protocol due to use of BSD Sockets
Past tense? I still regularly see code that uses BSD sockets and doesn't support IPv6. Actually, I feel like among C and C++ codebases that make direct TCP or UDP connections, the majority are IPv4-only, even in 2023. Though, direct TCP and UDP connections themselves are less popular than they used to be, and so are C and C++...
- p_l 3y agoPast tense on have to write two complete code paths to support v4 and v6 at the same time. Today we have getaddrinfo, so if you're writing from scratch you can just use that, you can also simplify older code with it and get v6 at the same time. But there's a lot of old code that still doesn't use GAI and was never upgraded.
- deleted 3y ago[deleted]