Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] ipv6
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: james woodyatt <jhw@w...>
Subject: Re: [Caml-list] ipv6
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 :
>> 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 <>

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: