[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] plan9 like socket interface
From: |
Simon Josefsson |
Subject: |
Re: [bug-inetutils] plan9 like socket interface |
Date: |
Tue, 29 Nov 2011 19:02:43 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) |
address@hidden (Alfred M. Szmidt) writes:
> I've been quite annoyed over how one does sockets on unixoid system
> for sometimes, specially with all the idiosyncrasies of IPv4 vs. IPv6.
In what way? If you use getaddrinfo properly, you don't have to care a
lot about IPv4 or IPv6 differences in my experiences. There is a lot of
code in InetUtils that uses old network coding habits though.
> Plan 9 has a quite nice API that is very much agnostic when it comes
> to IPv6, IPv4, ICMP, UDP, TCP, ... etc. Now, I haven't used it at
> all, and maybe it is not flexible enough for our purpose. Here is
> what a basic ping might look like,
Personally, I prefer POSIX standard here since people are more familiar
with it. Further, I would want to know how portably you could implement
the Plan 9 interface before deciding. If you can't do it portably
(i.e., assume POSIX but no more), I think it is a bad idea.
/Simon