network-service-0.1.0.0: Provide a service at the data type level.

Copyright(c) Moritz Angermann 2014
LicenseMIT
Maintainermoritz@lichtzwerge.de
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Network.Transport.Encoding.Base64

Description

A trivial service that uses base64 as encoding for the messages and newlines for message separation.

Synopsis

Documentation

mkService Source

Arguments

:: ServiceMessage a 
=> (Socket, SockAddr)

The socket and socket address to the service is bound on.

-> IO (Service a)

The service to be used.

Builds a simple service, that uses base64 as the base encoding for the messages. Messages are separated by newlines.