@hackage reflex-libtelnet0.1.0.0

Reflex bindings for libtelnet

Reflex Bindings to libtelnet

This is a reflex wrapper around libtelnet, which lets you describe data flows through the telnet state tracker using reflex Events.

This library thinly wraps the libtelnet functions, so you should read the libtelnet documentation alongside the haddocks for this package.

Quick Start

  1. Assemble a config :: TelnetConfig t, which holds the event streams that feed into a telnet state tracker. The easiest way to do this is to call def (there is an instance Reflex t => Default (TelnetConfig t)) and overwrite the fields you care about using record updates or lenses. You will almost certainly want to overwrite _cRecv to be the stream of incoming data from a socket, and _cSend to be the stream of outgoing data from your application.

  2. Call telnet config, and save the resulting TelnetEvents t. This structure holds the output event streams from a single telnet state tracker.

  3. Wire the ouput events into your application.

Other Resources