adhoc-network-1.0.3: Ad-hoc P2P network protocolSource codeContentsIndex
Network.AdHoc.Generator
MaintainerMartin Wegner
Description
Date: 2007-06-15
Synopsis
generateMessage :: [MessageID] -> InternalMessage -> (String, [MessageID])
generateMessage' :: AbstractElement -> String
genRootElem :: String -> AbstractElement -> Bool -> Maybe Delay -> TTL -> InternalSignature -> AbstractElement
genAnonymous :: Bool -> Maybe UserID -> Maybe MessageID -> String -> [Attachment] -> UTCTime -> AbstractElement
genObscure :: UserID -> Maybe MessageID -> ByteString -> AbstractElement
Documentation
generateMessage :: [MessageID] -> InternalMessage -> (String, [MessageID])Source
Takes an InternalMessage and generates the XML document from it.
generateMessage' :: AbstractElement -> StringSource
Takes an AbstractElement and generates the XML document from it.
genRootElem :: String -> AbstractElement -> Bool -> Maybe Delay -> TTL -> InternalSignature -> AbstractElementSource
Takes the given element and puts it into the root element of a message.
genAnonymous :: Bool -> Maybe UserID -> Maybe MessageID -> String -> [Attachment] -> UTCTime -> AbstractElementSource
Generates the tree of AbstractElements for an anonymous message.
genObscure :: UserID -> Maybe MessageID -> ByteString -> AbstractElementSource
Generates the tree of AbstractElements for an obscure message.
Produced by Haddock version 2.6.1