#1699: Fix network wrt abstract unix sockets
---------------------------------------+------------------------------------
Reporter: [EMAIL PROTECTED] | Owner:
Type: proposal | Status: new
Priority: normal | Milestone: Not GHC
Component: libraries/network | Version: 6.6.1
Severity: major | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Multiple
Os: Linux |
---------------------------------------+------------------------------------
Comment (by kolmodin):
Right, maybe I should have been more clear why I've been bugging you about
this :)
It seems that D-Bus is the main app forcing languages to implement this
linux specific feature, ruby also implemented it to support a pure ruby
implementation.
While forced to keep track of the address length I also wrote the previous
post to clean up a bit.
Many other languages expose the C network API to their users. As we've
noticed above, the difference is a prepending {{{'\0'}}} instead of a
trailing one.
Just making the network lib understand {{{(UnixSocket ('\0:path))}}} would
be perfectly fine by me, reusing the previous constructor.
That would work on any linux system, and on other *nix it would probably
complain that the address path is zero bytes long.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1699#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs