on 5da3375 help sign in
51 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 network servers.
11--
12-- > import qualified Streamly.Network.Server as Server
13--
15module Streamly.Network.Server
16 (
17 -- * Server Configuration
18 Server(..)
20 -- * TCP Servers
21 -- ** Connected sockets
22 , listen
23 , listenOnAddr
24 , listenOnPort
25 , listenOnPortLocal
27 {-
28 -- ** Sink Servers
30 -- These abstractions can be applied to any setting where we need to do a
31 -- sink processing of multiple streams e.g. output from multiple processes
32 -- or data coming from multiple files.
34 -- handle connections concurrently using a specified fold
35 -- , handleConnections
37 -- handle frames concurrently using a specified fold
38 , handleFrames
40 -- merge frames from all connection into a single stream. Frames can be
41 -- created by a specified fold.
42 , mergeFrames
44 -- * UDP Servers
45 , datagrams
46 , datagramsOn
47 -}
48 )
49where
51import Streamly.Internal.Network.Server