darcs patch: Implementation of aton and ntoa outside ... (and 1 more)

Robert Marlow bobstopper at bobturf.org
Mon Sep 25 04:44:14 EDT 2006


Warning:

This is my first use of FFI so it's probably buggy. In particular I
don't know how to use structs from haskell so I think aton is probably
incorrect in how it uses the Ptr HostAddress.

Sorry for the email flood.


On Mon, 2006-09-25 at 17:15 +0900, Robert Marlow wrote:
> Mon Sep 25 16:55:55 JST 2006  Robert Marlow <bobstopper at bobturf.org>
>   * Implementation of aton and ntoa outside the IO monad
>   
>   This is a second attempt at the earlier patch
>   
>   inet_ntoa and inet_aton can be implemented purely to avoid the need for
>   the IO monad. Additionally, inet_addr is currently incorrect due to
>   using the inet_addr C function which is considered obsolete due to
>   incorrectly failing while converting 255.255.255.255 as an address.
>   
> 
> Mon Sep 25 17:12:52 JST 2006  Robert Marlow <bobstopper at bobturf.org>
>   * Fixed bugs in names of aton and ntoa
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
-- 
Robert Marlow <bobstopper at bobturf.org>



More information about the Libraries mailing list