public class Message
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
BLOCK_SIZE |
(package private) static double |
EXP_FACTOR |
private java.lang.String |
m_address |
private java.lang.String |
m_decoded |
private EMail |
m_email |
private int |
m_hops |
private java.lang.String |
m_keyringpassword |
private int |
m_rbs |
(package private) static int |
MAX_FRAGMENTS_PER_CHUNK |
| Constructor and Description |
|---|
Message(EMail email,
int hops,
java.lang.String myadress,
java.lang.String password,
int rbs)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
private int |
ceilDiv(double a,
double b)
get the smallest integer i for i >= (a/b)
|
(package private) boolean |
encodeMessage() |
java.lang.String |
getDecoded() |
boolean |
send() |
private boolean |
sendToMixMinionServer(byte[] message,
MMRDescription description)
Send a message to the specified MMR
|
private EMail m_email
private int m_hops
private java.lang.String m_address
private java.lang.String m_decoded
private java.lang.String m_keyringpassword
private int m_rbs
static int BLOCK_SIZE
static int MAX_FRAGMENTS_PER_CHUNK
static double EXP_FACTOR
public Message(EMail email, int hops, java.lang.String myadress, java.lang.String password, int rbs)
email - The E-Mail to be senthops - myadress - Exit-Address in the ReplyBlock, which allows a recipient to replypassword - rbs - how many replyblocks to allow reply to mepublic boolean send()
boolean encodeMessage()
private boolean sendToMixMinionServer(byte[] message,
MMRDescription description)
message - description - private int ceilDiv(double a,
double b)
a - b - public java.lang.String getDecoded()
Copyright © 2023. All rights reserved.