on master help sign in
rename connectionsOnAllAddrs to connectionsOnPort
commit3c5c6a037368753f98056a405b58e4835e47d134 authorHarendra Kumar <harendra.kumar@gmail.com> dateMon 14 Oct 2019, 13:45 (7 years ago) parent977a072
1 file changed+5−6
src/Streamly/Internal/Network/Inet/TCP.hs+5−6
src/Streamly/Internal/Network/Inet/TCP.hs+5−6
@@ -27,9 +27,8 @@ module Streamly.Internal.Network.Inet.TCP
2727 , acceptOnPortLocal
2828
2929 -- ** Streams
30− , connections
3130 , connectionsOnAddr
32− , connectionsOnAllAddrs
31+ , connectionsOnPort
3332 , connectionsOnLocalHost
3433
3534 -- * TCP clients
@@ -185,12 +184,12 @@ connectionsOnAddr addr port =
185184-- IPv4 addresses/interfaces of the machine and listens for TCP connections on
186185-- the specified port.
187186--
188−-- > connectionsOnAllAddrs = connectionsOnAddr (0,0,0,0)
187+-- > connectionsOnPort = connectionsOnAddr (0,0,0,0)
189188--
190189-- /Internal/
191−{-# INLINE connectionsOnAllAddrs #-}
192−connectionsOnAllAddrs :: MonadAsync m => PortNumber -> SerialT m Socket
193−connectionsOnAllAddrs = connectionsOnAddr (0,0,0,0)
190+{-# INLINE connectionsOnPort #-}
191+connectionsOnPort :: MonadAsync m => PortNumber -> SerialT m Socket
192+connectionsOnPort = connectionsOnAddr (0,0,0,0)
194193
195194-- | Like 'connections' but binds on the localhost IPv4 address @127.0.0.1@.
196195-- The server can only be accessed from the local host, it cannot be accessed