eap-0.1.0.0: Extensible Authentication Protocol (EAP)

Copyright(c) Erick Gonzalez 2017
LicenseBSD3
Maintainererick@codemonkeylabs.de
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

Network.EAP.Encoding

Contents

Description

This basically provides Binary instances for the EAP Packet type and the embedded messages it encapsulates. So you basically decode a (lazy) bytestring and get an EAP Packet back or you can encode an EAP packet to ByteString you can send on the wire as is. Simple as that.

Synopsis

Documentation

getMessage :: Word16 -> Get (Maybe Message) Source #

Given the length of data to decode, decode an EAP message in the Get Monad. Used internally so you probably don't need to use this.

Orphan instances