Skip to content

Commit

Permalink
The byte order of HostAddress and that of HostAddress6 are different.
Browse files Browse the repository at this point in the history
So, writing docs.
  • Loading branch information
kazu-yamamoto committed Aug 26, 2011
1 parent 988938d commit 2cdb1cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Network/Socket/Internal.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ import System.IO.Error ( ioeSetErrorString, mkIOError )

------------------------------------------------------------------------

-- | Network byte order.
type HostAddress = Word32

#if defined(IPV6_SOCKET_SUPPORT)
-- | Host byte order.
type HostAddress6 = (Word32, Word32, Word32, Word32)

-- The peek32 and poke32 functions work around the fact that the RFCs
Expand Down

0 comments on commit 2cdb1cc

Please sign in to comment.