on ed030cc help sign in
49 lines 1.2 kB history raw
1-- |
2-- Module : Streamly.Network.Server
3-- Copyright : (c) 2019 Composewell Technologies
4--
5-- License : BSD3
6-- Maintainer : streamly@composewell.com
7-- Stability : experimental
8-- Portability : GHC
9--
10-- Combinators to build Inet/TCP clients and servers.
11--
12-- > import qualified Streamly.Network.Inet.TCP as TCP
13--
15module Streamly.Network.Inet.TCP
16 (
17 -- * Accept Connections
18 acceptOnAddr
19 , acceptOnPort
20 , acceptOnPortLocal
22 -- * Connect to Servers
23 , connect
25 {-
26 -- ** Sink Servers
28 -- These abstractions can be applied to any setting where we need to do a
29 -- sink processing of multiple streams e.g. output from multiple processes
30 -- or data coming from multiple files.
32 -- handle connections concurrently using a specified fold
33 -- , handleConnections
35 -- handle frames concurrently using a specified fold
36 , handleFrames
38 -- merge frames from all connection into a single stream. Frames can be
39 -- created by a specified fold.
40 , mergeFrames
42 -- * UDP Servers
43 , datagrams
44 , datagramsOn
45 -}
46 )
47where
49import Streamly.Internal.Network.Inet.TCP