summaryrefslogtreecommitdiff
path: root/Presence/GetHostByAddr.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-09-29 22:55:14 -0400
committerjoe <joe@jerkface.net>2017-09-29 22:55:14 -0400
commit24e3d96f00d04bccd8c754f489d2a30d34559cf2 (patch)
treeb8bbfdf8813c2e0927be170fecee359648ac8a76 /Presence/GetHostByAddr.hs
parentcac0a95f468deaf29a82facbe1dd039e4a4770cd (diff)
Disabled non-compiling IPv6 version of getHostByAddr.
Diffstat (limited to 'Presence/GetHostByAddr.hs')
-rw-r--r--Presence/GetHostByAddr.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Presence/GetHostByAddr.hs b/Presence/GetHostByAddr.hs
index db1ee09c..25ebd7c2 100644
--- a/Presence/GetHostByAddr.hs
+++ b/Presence/GetHostByAddr.hs
@@ -55,12 +55,14 @@ getHostByAddr (SockAddrInet port addr ) = do
55 throwNoSuchThingIfNull "getHostByAddr" "no such host entry" 55 throwNoSuchThingIfNull "getHostByAddr" "no such host entry"
56 $ trySysCall $ c_gethostbyaddr ptr_addr (fromIntegral (sizeOf addr)) (packFamily family) 56 $ trySysCall $ c_gethostbyaddr ptr_addr (fromIntegral (sizeOf addr)) (packFamily family)
57 >>= peek 57 >>= peek
58{-
58getHostByAddr (SockAddrInet6 port flow addr scope) = do 59getHostByAddr (SockAddrInet6 port flow addr scope) = do
59 let family = AF_INET6 60 let family = AF_INET6
60 with addr $ \ ptr_addr -> withLock $ do 61 with addr $ \ ptr_addr -> withLock $ do
61 throwNoSuchThingIfNull "getHostByAddr" "no such host entry" 62 throwNoSuchThingIfNull "getHostByAddr" "no such host entry"
62 $ trySysCall $ c_gethostbyaddr ptr_addr (fromIntegral (sizeOf addr)) (packFamily family) 63 $ trySysCall $ c_gethostbyaddr ptr_addr (fromIntegral (sizeOf addr)) (packFamily family)
63 >>= peek 64 >>= peek
65-}
64 66
65 67
66foreign import ccall safe "gethostbyaddr" 68foreign import ccall safe "gethostbyaddr"