MCPcopy Create free account
hub / github.com/akeranen/the-one / putToIncomingBuffer

Method putToIncomingBuffer

routing/MessageRouter.java:395–397  ·  view source on GitHub ↗

Puts a message to incoming messages buffer. Two messages with the same ID are distinguished by the from host. @param m The message to put @param from Who the message was from (previous hop).

(Message m, DTNHost from)

Source from the content-addressed store, hash-verified

393 * @param from Who the message was from (previous hop).
394 */
395 protected void putToIncomingBuffer(Message m, DTNHost from) {
396 this.incomingMessages.put(m.getId() + "_" + from.toString(), m);
397 }
398
399 /**
400 * Removes and returns a message with a certain ID from the incoming

Callers 1

receiveMessageMethod · 0.95

Calls 3

getIdMethod · 0.80
toStringMethod · 0.65
putMethod · 0.45

Tested by

no test coverage detected