caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: james woodyatt <jhw@wetware.com>
To: The Trade <caml-list@inria.fr>
Subject: Re: [Caml-list] ipv6
Date: Wed, 5 Mar 2003 12:27:26 -0800	[thread overview]
Message-ID: <E177A530-4F48-11D7-A972-000393BA7EBA@wetware.com> (raw)
In-Reply-To: <20030305125936.GB17976@hilbert.house>

On Wednesday, Mar 5, 2003, at 04:59 US/Pacific, Ceri Storey wrote:
> On Wed, Mar 05, 2003 at 10:22:06AM +0100, Olivier Andrieu wrote:
>> I did some things on ipv6 too. I made a patch for the Unix library :
>>
>> http://oandrieu.nerim.net/ocaml/index.html#ipv6
>>
>> There's getaddrinfo and getnameinfo support and some other things too.
>
> It looks good to me, but I don't suppose it'd be possible to have it
> extensible to other address families? Myself, i'd like getaddrinfo
> etc to handle unix addresses transparently. Admittedly this isn't
> supported in any C implementation I know of, but IMHO it'd be nice.

Not to mention it would also be nice to get support for multicast, 
IPsec, ICMP, etc.

The way I have been approaching this problem is to ditch the sockets 
layer in the Unix library, and roll my own extensible sockets layer.  
That way I can support new address families, socket types, protocols 
and socket options without having to change the module signatures in 
the existing library.  As a bonus, I get more type safety in the socket 
interface and a couple of convenience functions for manipulating socket 
addresses more easily.

I doubt this approach will ever be used in the standard distribution, 
though.  I'm also not expecting to be able to release my code until 
probably after the next OCaml release-- whenever that is.


-- 
j h woodyatt <jhw@wetware.com>

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2003-03-05 20:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-04 12:29 Yaron M. Minsky
2003-03-04 13:07 ` Francis Dupont
2003-03-04 23:51 ` Shawn Wagner
2003-03-05  9:22   ` Olivier Andrieu
2003-03-05 12:59     ` Ceri Storey
2003-03-05 20:27       ` james woodyatt [this message]
2003-03-05 20:36       ` Nicolas George
2003-03-05 15:19     ` Yaron M. Minsky
2003-03-04 13:27 Beck01, Wolfgang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E177A530-4F48-11D7-A972-000393BA7EBA@wetware.com \
    --to=jhw@wetware.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).