nettle-openflow-0.2.0: OpenFlow protocol messages, binary formats, and servers.

Nettle.OpenFlow.MessagesBinary

Contents

Description

This module implements parsing and unparsing functions for OpenFlow messages. It exports a driver that can be used to read messages from a file handle and write messages to a handle.

Synopsis

Parsing and unparsing methods

getHeader :: Get OFPHeaderSource

Parser for the OpenFlow message header

getSCMessage :: Get (TransactionID, SCMessage)Source

Parser for SCMessages

putSCMessage :: (TransactionID, SCMessage) -> PutSource

Unparser for SCMessages

getCSMessage :: Get (TransactionID, CSMessage)Source

Parser for CSMessages

putCSMessage :: (TransactionID, CSMessage) -> PutSource

Unparser for CSMessages

data OFPHeader Source

OpenFlow message header

Constructors

OFPHeader 

Fields

msgVersion :: !OpenFlowVersionID
 
msgType :: !MessageTypeCode
 
msgLength :: !Word16
 
msgTransactionID :: !TransactionID