@@ -10,13 +10,13 @@
10-- This module provides socket based streaming APIs to to receive connections
10-- This module provides socket based streaming APIs to to receive connections
11-- from remote hosts, and to read and write from and to network sockets.
11-- from remote hosts, and to read and write from and to network sockets.
13−-- For basic socket types and operations please consult the @Network.Socket@
13+-- For basic socket types and non-streaming operations please consult the @Network.Socket@
14-- module of the <http://hackage.haskell.org/package/network network> package.
14-- module of the <http://hackage.haskell.org/package/network network> package.
16-- = Examples
16-- = Examples
18−-- To write a server, use the 'acceptor' unfold to start listening for
18+-- To write a server, use the 'accept' stream to start listening for
19−-- connections from clients. 'acceptor' generates a stream of connected
19+-- connections from clients. 'accept' generates a stream of connected
20-- sockets. We can map an effectful action on this socket stream to handle the
20-- sockets. We can map an effectful action on this socket stream to handle the
21-- connections. The action would typically use socket reading and writing
21-- connections. The action would typically use socket reading and writing
22-- operations to communicate with the remote host. We can read/write a stream
22-- operations to communicate with the remote host. We can read/write a stream
@@ -33,7 +33,6 @@
33-- >>> import Streamly.Network.Socket (SockSpec(..))
33-- >>> import Streamly.Network.Socket (SockSpec(..))
35-- >>> import qualified Streamly.Data.Fold as Fold
35-- >>> import qualified Streamly.Data.Fold as Fold
36−-- >>> import qualified Streamly.Data.Stream as Stream
37-- >>> import qualified Streamly.Data.Stream.Prelude as Stream
36-- >>> import qualified Streamly.Data.Stream.Prelude as Stream
38-- >>> import qualified Streamly.Network.Socket as Socket
37-- >>> import qualified Streamly.Network.Socket as Socket