Popularity
5.5
Stable
Activity
0.0
Stable
5
4
2

Monthly Downloads: 8
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Network     Networking     Reflex    
Latest version: v0.2.0.0
Add another 'reflex' Package

README

Data61 Logo

Build Status

This library provides reflex support for writing TCP servers and clients. All the socket operations are wrapped to use Reflex Events, and the underlying sending/receiving/waiting/accepting operations are performed on background threads.

The most important function in this library is Reflex.Backend.Socket.socket, which wraps a Socket to process Event t ByteStrings.

That Socket can come from:

  1. Reflex.Backend.Socket.Accept.accept, if you're making a server;
  2. Reflex.Backend.Socket.Connect.connect, if you're making a client; or
  3. Your favourite networking library.

Check the example subdirectory for some examples. Example clients and servers are provided.