|
| Network.AdHoc.ParserStrict | | Maintainer | Henning Guenther |
|
|
|
| Description |
| A module containing functions to parse the XML specified by the
protocol into the internal message types.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| parseMessageNoValidate :: Document Posn -> Either String ExternalMessage |
| Parses a message without verifying the signature. It must only be
used for testing or debugging issues!
|
|
| parseMessage |
| :: (String -> Signature -> UserID -> SignatureStatus) | A validation function for signatures.
| | -> Document Posn | The XML Document to be parsed.
| | -> Either String ExternalMessage | Left err on failure, err describs the error. Right msg on success.
| | Given a validation function for signatures, this function parses an XML
Document into an ExternalMessage.
|
|
|
| parseInnerMessage |
| :: Document Posn | The XML Document to be parsed.
| | -> Either String (Either (UserID, RSAEncrypted String) (UTCTime, String, [Attachment])) | Left err in case of a parsing failure;
Right msg on success. msg either is one more obscured message or
the final message to be flooded.
| | Parses an Obscure-message.
|
|
|
| Produced by Haddock version 0.8 |