on master help sign in
rename connectionsOnAllAddrs to connectionsOnPort
3c5c6a0Harendra Kumar
src/Streamly/Internal/Network/Inet/TCP.hs+5−6
@@ -27,9 +27,8 @@ module Streamly.Internal.Network.Inet.TCP
27 , acceptOnPortLocal
27 , acceptOnPortLocal
28
28
29 -- ** Streams
29 -- ** Streams
30− , connections
31 , connectionsOnAddr
30 , connectionsOnAddr
32− , connectionsOnAllAddrs
31+ , connectionsOnPort
33 , connectionsOnLocalHost
32 , connectionsOnLocalHost
34
33
35 -- * TCP clients
34 -- * TCP clients
@@ -185,12 +184,12 @@ connectionsOnAddr addr port =
185-- IPv4 addresses/interfaces of the machine and listens for TCP connections on
184-- IPv4 addresses/interfaces of the machine and listens for TCP connections on
186-- the specified port.
185-- the specified port.
187--
186--
188−-- > connectionsOnAllAddrs = connectionsOnAddr (0,0,0,0)
187+-- > connectionsOnPort = connectionsOnAddr (0,0,0,0)
189--
188--
190-- /Internal/
189-- /Internal/
191−{-# INLINE connectionsOnAllAddrs #-}
190+{-# INLINE connectionsOnPort #-}
192−connectionsOnAllAddrs :: MonadAsync m => PortNumber -> SerialT m Socket
191+connectionsOnPort :: MonadAsync m => PortNumber -> SerialT m Socket
193−connectionsOnAllAddrs = connectionsOnAddr (0,0,0,0)
192+connectionsOnPort = connectionsOnAddr (0,0,0,0)
194
193
195-- | Like 'connections' but binds on the localhost IPv4 address @127.0.0.1@.
194-- | Like 'connections' but binds on the localhost IPv4 address @127.0.0.1@.
196-- The server can only be accessed from the local host, it cannot be accessed
195-- The server can only be accessed from the local host, it cannot be accessed