This library thinly wraps the libtelnet functions, so you should read the libtelnet documentation alongside the haddocks for this package.
config :: TelnetConfig t, which holds the event
streams that feed into a telnet state tracker. The easiest way to
do this is to call
newTelnetConfig and overwrite the fields you
care about using record updates or lenses. You will almost
certainly want to overwrite
recv to be the stream of incoming
data from a socket, and
send to be the stream of outgoing data
from your application.
telnet config, and save the resulting
TelnetEvents t. This
structure holds the output event streams from a single telnet state
Wire the output events into your application.
A telnet echo
exists in the
repo, outside this
package. It is packaged separately so that it can be licensed more
permissively, and to minimise
Questions should go to the reflex-libtelnet-discuss mailing list.
Bug reports should go to the bug tracker.