[Haskell] Re: Existing Haskell IPv6 Code
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Thu May 12 13:05:09 EDT 2005
Peter Simons <simons at cryp.to> writes:
> >> [URIs might be the answer]
>
> > But what URI should represent e.g. unix datagram sockets?
>
> I don't think it's worth even trying to hide both stream-
> and packet-oriented services behind the same API. These are
> completely different things, treated them differently is
> fine, IMHO.
But they don't differ in addressing. In BSD sockets the difference
between streams and packets lies in "socket type", while addresses
are split into "address families" which bijectively correspond to
"protocol families".
--
__("< Marcin Kowalczyk
\__/ qrczak at knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
More information about the Haskell
mailing list