@@ -72,7 +72,7 @@ defaultSourceHints = SourceHints
72-- end. Connections between other sources the target end remain unaffected
72-- end. Connections between other sources the target end remain unaffected
73data SourceEnd = SourceEnd
73data SourceEnd = SourceEnd
74 { send :: [ByteString] -> IO ()
74 { send :: [ByteString] -> IO ()
75− , close :: IO ()
75+ , closeSourceEnd :: IO ()
78-- | A `TargetEnd` provides a `receive` function that allows messages
78-- | A `TargetEnd` provides a `receive` function that allows messages
@@ -81,7 +81,7 @@ data SourceEnd = SourceEnd
81-- and all new connections will be refused.
81-- and all new connections will be refused.
82data TargetEnd = TargetEnd
82data TargetEnd = TargetEnd
83 { receive :: IO [ByteString]
83 { receive :: IO [ByteString]
84− , closeAll :: IO ()
84+ , closeTargetEnd :: IO ()
87newtype MulticastSourceEnd = MulticastSourceEnd
87newtype MulticastSourceEnd = MulticastSourceEnd