@hackage / reflex-backend-socket

Reflex bindings for TCP sockets

Latest0.2.0.1

About

Metadata

  • Last updated , by jack
  • License BSD-3-Clause
  • Categories Network Development, FRP
  • Maintained by: dave.laing.80@gmail.com, jack@jackkelly.name

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 8.6.5

Readme

reflex-backend-socket provides functions to handle sockets using Reflex Events. Sending/receiving/waiting/accepting are all 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.