diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-07-10 19:27:17 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-07-10 19:27:17 +0200 |
commit | a41ef4c4b12f1904617c08a6ba616737d14478c6 (patch) | |
tree | d4e967282fe2265bbce92bcbad0a91244743971f /src/Erebos/Network.hs | |
parent | 1b191a5624039dd743304bf408ee2245d1b8e97e (diff) |
Diffstat (limited to 'src/Erebos/Network.hs')
-rw-r--r-- | src/Erebos/Network.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Erebos/Network.hs b/src/Erebos/Network.hs index aff04e4..955af55 100644 --- a/src/Erebos/Network.hs +++ b/src/Erebos/Network.hs @@ -1067,9 +1067,9 @@ modifyServiceGlobalState server proxy f = do throwOtherError $ "unhandled service '" ++ show (toUUID svc) ++ "'" -foreign import ccall unsafe "Network/ifaddrs.h join_multicast" cJoinMulticast :: CInt -> Ptr CSize -> IO (Ptr Word32) -foreign import ccall unsafe "Network/ifaddrs.h local_addresses" cLocalAddresses :: Ptr CSize -> IO (Ptr InetAddress) -foreign import ccall unsafe "Network/ifaddrs.h broadcast_addresses" cBroadcastAddresses :: IO (Ptr Word32) +foreign import ccall unsafe "Network/ifaddrs.h erebos_join_multicast" cJoinMulticast :: CInt -> Ptr CSize -> IO (Ptr Word32) +foreign import ccall unsafe "Network/ifaddrs.h erebos_local_addresses" cLocalAddresses :: Ptr CSize -> IO (Ptr InetAddress) +foreign import ccall unsafe "Network/ifaddrs.h erebos_broadcast_addresses" cBroadcastAddresses :: IO (Ptr Word32) foreign import ccall unsafe "stdlib.h free" cFree :: Ptr a -> IO () data InetAddress = InetAddress { fromInetAddress :: IP.IP } |