|
Network.AdHoc.Message | Maintainer | Henning Guenther |
|
|
|
Description |
This module contains types representing the different kinds of
messages defined by the protocol.
|
|
Synopsis |
|
|
|
Documentation |
|
|
Specifies the encryption algorithm used to encrypt a message
| Constructors | CipherDES_CBC | | CipherNone | | CipherUnknown String | An unknown cipher was used
|
| Instances | |
|
|
|
TimeToLive has a maximum of 360, so 16 bit unsigned is enough to hold it
|
|
|
The message-delay can be represented by this type.
|
|
|
An attachmet as defined in the protocoll.
| Constructors | Attachment | | attachmentFilename :: String | Name of the attached file
| attachmentAppType :: String | Mime-type of the very same
| attachmentContent :: ByteString | The actual content of the file
|
|
| Instances | |
|
|
data EncryptedAttachment | Source |
|
An attachment that has been encrypted.
| Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
A class of messages that can be routed.
| Constructors | Routed | | routedTTL :: TTL | The time-to-live of the message
| routedUserID :: UserID | Receiver of the routed message
| routedMsgID :: MessageID | ID of the routed message
| routedContent :: a | The actual content of the message
| routedSignature :: sign | Signature of the message
|
|
| Instances | |
|
|
|
An unsigned message.
|
|
|
An internal message that is subject to internal signature guidelines.
|
|
|
An external message.
|
|
data ProtocolMessage sign | Source |
|
Basic protocol message representation.
| Constructors | Hello | Informs about a user on the sending node, giving the user-id, the protocol version and a friendly greeting
| | Ack | Sender of the original message and the sended message-id
| | Routing | Routing informations, a list of users and how much hops it takes to reach them
| | Target (Routed TargetContent sign) | Messages with one specified receiver
| Flood (Routed FloodContent sign) | Messages flooded through the network
| Obscure (Routed (RSAEncrypted String) ()) | Obscure messages
|
| Instances | |
|
|
|
Messages directed to a specified receiver.
| Constructors | Nack (Routed TargetContent ExternalSignature) | Negative ACK
| GetCertificate | Requesting a certificate
| | Certificate | Transmitting a certificate
| | Message | A chat message
| | GetKey | Key request for a private channel
| | Key | Key message for a private channel
| |
| Instances | |
|
|
|
Messages flooded throughout the entire network.
| Constructors | Channel | Channel announcements
| | Join | Join message for a channel
| | Leave | The users leaves a channel
| | Anonymous | An anonymous message that has been unpacked and will be flooded
| |
| Instances | |
|
|
|
A messages content can either be encrypted or not.
| Constructors | | Instances | |
|
|
|
Decrements the time-to-live of a message. If it sinks under zero,
Nothing is returned. Just msg otherwise, where msg has a
decremented ttl.
|
|
|
Extracts the information from a message, that indicates, where to
route it.
|
|
Produced by Haddock version 2.4.2 |