[Haskell-cafe] Network trouble: what to do?

Creighton Hogg wchogg at gmail.com
Wed Oct 15 13:41:59 EDT 2008


On Wed, Oct 15, 2008 at 12:26 PM, Bryan O'Sullivan <bos at serpentine.com> wrote:
> On Wed, Oct 15, 2008 at 6:54 AM, Creighton Hogg <wchogg at gmail.com> wrote:
>
>> Is there a way around this that I just haven't seen, or should I write
>> a patch to Network to add an extra constructor to SockAddr and code to
>> handle it?
>
> Linux and Windows support Bluetooth sockets, but they have different
> ideas of what the address family is called (AF_BTH vs AF_BLUETOOTH).
> Less popular platforms are all over the map: some (Solaris) have no
> support, others (NetBSD) don't use sockets for Bluetooth. I don't
> think that a patch to Network.Socket is the way to go for this, since
> it won't be portable enough. Perhaps a Network.Bluetooth package is in
> order to hide all the platform-specific gunk.

Ah, I've only ever used Bluetooth on Linux and didn't realize how
different it was between platforms.  I think you're right, then, and a
Network.Bluetooth would be a good idea.

Cheers,
Creighton


More information about the Haskell-Cafe mailing list