reflex-libtelnet: Reflex bindings for libtelnet

[ gpl, library, network ] [ Propose Tags ]

Wraps https://git.sr.ht/~jack/libtelnet-haskell , so you can handle telnet data streams using reflex Reflex.Events. See README.md or Reflex.LibTelnet to get started.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2.0.0
Change log CHANGELOG.md
Dependencies base (>=4.11 && <4.13), bytestring (>=0.10.8.2 && <0.11), data-default (>=0.7.1.1 && <0.8), dependent-map (>=0.3 && <0.4), dependent-sum (>=0.6.2.0 && <=0.7), dependent-sum-template (>=0.1 && <0.2), lens (>=4.16.1 && <4.18), libtelnet (>=0.1 && <0.2), reflex (>=0.5 && <0.7) [details]
License GPL-3.0-or-later
Copyright (c) 2019 Jack Kelly
Author Jack Kelly
Maintainer jack@jackkelly.name
Category Network
Home page https://git.sr.ht/~jack/reflex-libtelnet
Bug tracker https://todo.sr.ht/~jack/reflex-libtelnet
Source repo head: git clone https://git.sr.ht/~jack/reflex-libtelnet
Uploaded by jack at 2019-12-02T22:26:18Z
Distributions
Downloads 452 total (6 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for reflex-libtelnet-0.1.0.0

[back to package description]

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