on ba01fcd help sign in
53 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 : released
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 -- XXX Expose this as a pipe when we have pipes.
27 -- * Transformation
28 -- , processBytes
30 -- ** Sink Servers
32 -- These abstractions can be applied to any setting where we need to do a
33 -- sink processing of multiple streams e.g. output from multiple processes
34 -- or data coming from multiple files.
36 -- handle connections concurrently using a specified fold
37 -- , handleConnections
39 -- handle frames concurrently using a specified fold
40 , handleFrames
42 -- merge frames from all connection into a single stream. Frames can be
43 -- created by a specified fold.
44 , mergeFrames
46 -- * UDP Servers
47 , datagrams
48 , datagramsOn
49 -}
50 )
51where
53import Streamly.Internal.Network.Inet.TCP