Skip to content

Message replication - #55

Open
schmittner wants to merge 2 commits into
akeranen:masterfrom
schmittner:message-replication
Open

Message replication#55
schmittner wants to merge 2 commits into
akeranen:masterfrom
schmittner:message-replication

Conversation

@schmittner

Copy link
Copy Markdown
Contributor

See commit messages.

The current method to copy a message is a bit awkward: it first
creates a new message and then copies some fields from the original
message, leading to some fields being initialized twice.
This patch makes the procedure cleaner and more efficient.
…acted

So there is no need to perform another replication within that method.
This patch requires to remove the (useless) call to addNodeOnPath()
within DTNHost#receiveMessage() because the node would otherwise
be added twice to the same message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant